Class WebPageDownloadSimpleton

All Implemented Interfaces:

public class WebPageDownloadSimpleton
extends Simpleton
implements EventHandler

This Simpleton has the job of downloading a URL.

Nested Class Summary
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
Constructor Summary
          This is the default constructor.
Method Summary
 void handle(DataManagerEvent event)
          Handle a DataManagerEvent that has been fired.
 void process()
          This method is where all the Simpleton's processing takes place.
Methods inherited from class org.datamanager.kernel.Simpleton
clone, getInformation, getPriority, setInformation, setPriority, start
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public WebPageDownloadSimpleton()
This is the default constructor. It calls the constructor that takes a String with a default name.

Method Detail


public void process()
This method is where all the Simpleton's processing takes place. It downloads the contents of a url and attaches pieces of information about the url to the entity along with the downloaded content.

Specified by:
process in class Simpleton


public void handle(DataManagerEvent event)
Description copied from interface: EventHandler
Handle a DataManagerEvent that has been fired.

Specified by:
handle in interface EventHandler
event - The event to handle.

See the Helium Website