org.datamanager.simpleton
Class WebPageDownloadSimpleton
java.lang.Object
|
+--org.datamanager.kernel.Simpleton
|
+--org.datamanager.simpleton.WebPageDownloadSimpleton
- All Implemented Interfaces:
- EventHandler
- public class WebPageDownloadSimpleton
- extends Simpleton
- implements EventHandler
This Simpleton has the job of downloading a URL.
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. |
WebPageDownloadSimpleton
public WebPageDownloadSimpleton()
- This is the default constructor. It calls the constructor that takes a
String with a default name.
process
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
handle
public void handle(DataManagerEvent event)
- Description copied from interface:
EventHandler
- Handle a DataManagerEvent that has been fired.
- Specified by:
handle
in interface EventHandler
- Parameters:
event
- The event to handle.
See the Helium Website