|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.standalone.AbstractStandalone
adams.flow.standalone.FTPConnection
public class FTPConnection
Provides access to a FTP host.
If debugging is enabled, the FTP commands issued by other actors will get printed as debug output of this actor.
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-name <java.lang.String> (property: name) The name of the actor. default: FTPConnection
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-stop-flow-on-error (property: stopFlowOnError) If set to true, the flow gets stopped in case this actor encounters an error; useful for critical actors.
-host <java.lang.String> (property: host) The host (name/IP address) to connect to. default:
-user <java.lang.String> (property: user) The FTP user to use for connecting. default: anonymous
-password <adams.core.base.BasePassword> (property: password)
The password of the FTP user to use for connecting.
default: {}
-passive (property: usePassiveMode) If enabled, passive mode is used instead.
-binary (property: useBinaryMode) If enabled, binary mode is used instead of ASCII.
| Field Summary | |
|---|---|
protected org.apache.commons.net.ftp.FTPClient |
m_Client
the FTP client object. |
protected String |
m_Host
the FTP host. |
protected BasePassword |
m_Password
the FTP password to use. |
protected boolean |
m_UseBinaryMode
whether to use binary file transfer mode. |
protected boolean |
m_UsePassiveMode
whether to use passive mode. |
protected String |
m_User
the FTP user to use. |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_ExecutionListeningSupporter, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Fields inherited from interface adams.flow.core.Actor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ |
| Constructor Summary | |
|---|---|
FTPConnection()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected void |
disconnect()
Disconnects the FTP session, if necessary. |
protected String |
doExecute()
Executes the flow item. |
org.apache.commons.net.ftp.FTPClient |
getFTPClient()
Returns the FTP client object. |
String |
getHost()
Returns the host to connect to. |
BasePassword |
getPassword()
Returns the FTP password to use. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
boolean |
getUseBinaryMode()
Returns whether binary mode is used. |
boolean |
getUsePassiveMode()
Returns whether passive mode is used. |
String |
getUser()
Returns the FTP user name to use. |
String |
globalInfo()
Returns a string describing the object. |
String |
hostTipText()
Returns the tip text for this property. |
String |
passwordTipText()
Returns the tip text for this property. |
void |
protocolCommandSent(org.apache.commons.net.ProtocolCommandEvent event)
This method is invoked by a ProtocolCommandEvent source after sending a protocol command to a server. |
void |
protocolReplyReceived(org.apache.commons.net.ProtocolCommandEvent event)
This method is invoked by a ProtocolCommandEvent source after receiving a reply from a server. |
protected void |
reset()
Resets the actor. |
void |
setHost(String value)
Sets the host to connect to. |
void |
setPassword(BasePassword value)
Sets the FTP password to use. |
void |
setUseBinaryMode(boolean value)
Sets whether to use binary mode. |
void |
setUsePassiveMode(boolean value)
Sets whether to use passive mode. |
void |
setUser(String value)
Sets the FTP user to use. |
String |
useBinaryModeTipText()
Returns the tip text for this property. |
String |
usePassiveModeTipText()
Returns the tip text for this property. |
String |
userTipText()
Returns the tip text for this property. |
void |
wrapUp()
Cleans up after the execution has finished. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Field Detail |
|---|
protected String m_Host
protected String m_User
protected BasePassword m_Password
protected boolean m_UsePassiveMode
protected boolean m_UseBinaryMode
protected org.apache.commons.net.ftp.FTPClient m_Client
| Constructor Detail |
|---|
public FTPConnection()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorprotected void reset()
reset in class AbstractActorpublic String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in interface ActorgetQuickInfo in class AbstractActorpublic void setHost(String value)
value - the host name/ippublic String getHost()
public String hostTipText()
public void setUser(String value)
value - the user namepublic String getUser()
public String userTipText()
public void setPassword(BasePassword value)
value - the passwordpublic BasePassword getPassword()
public String passwordTipText()
public void setUsePassiveMode(boolean value)
value - if true passive mode is usedpublic boolean getUsePassiveMode()
public String usePassiveModeTipText()
public void setUseBinaryMode(boolean value)
value - if true binary mode is usedpublic boolean getUseBinaryMode()
public String useBinaryModeTipText()
public org.apache.commons.net.ftp.FTPClient getFTPClient()
protected String doExecute()
doExecute in class AbstractActorprotected void disconnect()
public void wrapUp()
wrapUp in interface ActorwrapUp in class AbstractActorpublic void protocolCommandSent(org.apache.commons.net.ProtocolCommandEvent event)
protocolCommandSent in interface org.apache.commons.net.ProtocolCommandListenerevent - The ProtocolCommandEvent fired.public void protocolReplyReceived(org.apache.commons.net.ProtocolCommandEvent event)
protocolReplyReceived in interface org.apache.commons.net.ProtocolCommandListenerevent - The ProtocolCommandEvent fired.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||