com.raritantechnologies.utils.network
Class FileDownloadProcess

java.lang.Object
  extended bycom.raritantechnologies.utils.network.FileDownloadProcess
All Implemented Interfaces:
IConfigurable, IJobProcess

public class FileDownloadProcess
extends java.lang.Object
implements IJobProcess

Downloads a file from a URL.

XML Configuration Schema:
   <JobProcess class="com.raritantechnologies.utils.network.FileDownloadProcess" 
                  httpURL="[ url for http file download ]"
                  ftpServer="[ server for ftp download ]"
                  ftpFile="[ ftp file for download ]"
                  username="[ user name for ftp download ]"
                  password="[ password for ftp download ]"
                  filePath="[ output file path ]" />
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
FileDownloadProcess()
           
 
Method Summary
 void executeJob(RaritanPageContext rpc)
           
 void executeJob(java.lang.String[] args)
           
 java.lang.String getConfigurationXML()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void setFilePath(java.lang.String filePath)
           
 void setFTPFile(java.lang.String ftpFile)
           
 void setFTPServer(java.lang.String ftpServer)
           
 void setHttpURL(java.lang.String httpURL)
           
 void setPassword(java.lang.String password)
           
 void setUserName(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDownloadProcess

public FileDownloadProcess()
Method Detail

executeJob

public void executeJob(RaritanPageContext rpc)
Specified by:
executeJob in interface IJobProcess

executeJob

public void executeJob(java.lang.String[] args)
Specified by:
executeJob in interface IJobProcess

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IJobProcess

setHttpURL

public void setHttpURL(java.lang.String httpURL)

setFilePath

public void setFilePath(java.lang.String filePath)

setFTPServer

public void setFTPServer(java.lang.String ftpServer)

setFTPFile

public void setFTPFile(java.lang.String ftpFile)

setUserName

public void setUserName(java.lang.String username)

setPassword

public void setPassword(java.lang.String password)

getConfigurationXML

public java.lang.String getConfigurationXML()
Specified by:
getConfigurationXML in interface IJobProcess