org.datamanager.simpleton
Class NewsGroupDownloadSimpleton
java.lang.Object
|
+--org.datamanager.kernel.Simpleton
|
+--org.datamanager.simpleton.NewsGroupDownloadSimpleton
- All Implemented Interfaces:
- EventHandler
- public class NewsGroupDownloadSimpleton
- extends Simpleton
- implements EventHandler
This Simpleton's job is to go to a news group and download a
list of articles. Those articles are then sent of in
NewsMessageDownloadEvents to be downloaded by another simpleton.
NewsGroupDownloadSimpleton
public NewsGroupDownloadSimpleton()
process
public void process()
- Description copied from class:
Simpleton
- Performs the work of this Simpleton. Simpleton
implementation must override this class.
- 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.
download
protected void download(String address,
String group)
See the Helium Website