com.raritantechnologies.utils.network
Class FileDownloadProcess
java.lang.Object
com.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDownloadProcess
public FileDownloadProcess()
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