|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.xml.dataCollection.FTPXMLDataSource
Implementation of IXMLDataSource that pulls files from an FTP host.
XML Configuration Template:
<XMLSource class="com.raritantechnologies.xml.dataCollection.FTPXMLDataSource"
ftpHost="[ftp host URL]"
userName="[ftp user name]"
password="[the password]"
remoteFilePath="/some/path"
fileNamePattern="[reg expr pattern to match filenames]"
includeSubdirectories="true/false"
eventRecorderName="[name of IEventRecorder SystemObject]"
eventName="[the name of this event]" >
| Constructor Summary | |
FTPXMLDataSource()
|
|
| Method Summary | |
java.lang.String |
getConfigurationXML()
|
java.lang.String |
getEventName()
|
IEventRecorder |
getEventRecorder()
|
java.lang.String |
getFtpHost()
|
org.w3c.dom.Document |
getNextResult()
returns next available document |
java.lang.String |
getPassword()
|
boolean |
getRecurseSubdirectories()
|
java.lang.String |
getRemoteFilePath()
|
java.lang.String |
getUserName()
|
boolean |
hasMoreResults()
returns true if more results available, false otherwise |
void |
init(RaritanPageContext rpc)
Initialize the source. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
setEventName(java.lang.String eventName)
|
void |
setEventRecorder(IEventRecorder eRecorder)
|
void |
setFtpHost(java.lang.String ftpHost)
|
void |
setPassword(java.lang.String password)
|
void |
setRecurseSubdirectories(boolean recurse)
|
void |
setRemoteFilePath(java.lang.String remotePath)
|
void |
setUserName(java.lang.String userName)
|
void |
shutdown()
close all connections, or other application resources. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FTPXMLDataSource()
| Method Detail |
public void init(RaritanPageContext rpc)
IXMLDataSource
init in interface IXMLDataSourcepublic boolean hasMoreResults()
IXMLDataSource
hasMoreResults in interface IXMLDataSourcepublic org.w3c.dom.Document getNextResult()
IXMLDataSource
getNextResult in interface IXMLDataSourcepublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurablepublic void shutdown()
IXMLDataSource
shutdown in interface IXMLDataSourcepublic void setFtpHost(java.lang.String ftpHost)
public java.lang.String getFtpHost()
public void setUserName(java.lang.String userName)
public java.lang.String getUserName()
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public void setRemoteFilePath(java.lang.String remotePath)
public java.lang.String getRemoteFilePath()
public void setRecurseSubdirectories(boolean recurse)
public boolean getRecurseSubdirectories()
public void setEventRecorder(IEventRecorder eRecorder)
public IEventRecorder getEventRecorder()
public void setEventName(java.lang.String eventName)
public java.lang.String getEventName()
public java.lang.String getConfigurationXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||