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.


Nested Class Summary
 
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
 
Constructor Summary
WebPageDownloadSimpleton()
          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

WebPageDownloadSimpleton

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

Method Detail

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