org.springframework.integration.ftp.client
Class DefaultFtpsClientFactory
java.lang.Object
org.springframework.integration.ftp.client.AbstractFtpClientFactory<org.apache.commons.net.ftp.FTPSClient>
org.springframework.integration.ftp.client.DefaultFtpsClientFactory
- All Implemented Interfaces:
- FtpClientFactory<org.apache.commons.net.ftp.FTPSClient>
public class DefaultFtpsClientFactory
- extends AbstractFtpClientFactory<org.apache.commons.net.ftp.FTPSClient>
provides a working FTPS implementation. Based heavily on DefaultFtpClientFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFtpsClientFactory
public DefaultFtpsClientFactory()
setProtocol
public void setProtocol(java.lang.String protocol)
setUseClientMode
public void setUseClientMode(java.lang.Boolean useClientMode)
setSessionCreation
public void setSessionCreation(java.lang.Boolean sessionCreation)
setAuthValue
public void setAuthValue(java.lang.String authValue)
setTrustManager
public void setTrustManager(javax.net.ssl.TrustManager trustManager)
setCipherSuites
public void setCipherSuites(java.lang.String[] cipherSuites)
setProtocols
public void setProtocols(java.lang.String[] protocols)
setKeyManager
public void setKeyManager(javax.net.ssl.KeyManager keyManager)
setNeedClientAuth
public void setNeedClientAuth(java.lang.Boolean needClientAuth)
setWantsClientAuth
public void setWantsClientAuth(java.lang.Boolean wantsClientAuth)
setProt
public void setProt(java.lang.String prot)
setImplicit
public void setImplicit(boolean implicit)
onAfterConnect
protected void onAfterConnect(org.apache.commons.net.ftp.FTPSClient ftpsClient)
throws java.io.IOException
- Description copied from class:
AbstractFtpClientFactory
- this is a hook to setup the state of the
FTPClient
impl *after* the
implementation's SocketClient.connect(String)
method's been called but before any
action's been taken.
- Overrides:
onAfterConnect
in class AbstractFtpClientFactory<org.apache.commons.net.ftp.FTPSClient>
- Parameters:
ftpsClient
- the ftp client instance on which to act
- Throws:
java.io.IOException
- if anything should go wrong
getClient
public org.apache.commons.net.ftp.FTPSClient getClient()
throws java.net.SocketException,
java.io.IOException
- Specified by:
getClient
in interface FtpClientFactory<org.apache.commons.net.ftp.FTPSClient>
- Overrides:
getClient
in class AbstractFtpClientFactory<org.apache.commons.net.ftp.FTPSClient>
- Returns:
- Fully configured and connected FTPClient. Never
null
.
- Throws:
java.io.IOException
- thrown when a networking IO subsystem error occurs
java.net.SocketException
createSingleInstanceOfClient
protected org.apache.commons.net.ftp.FTPSClient createSingleInstanceOfClient()
- Specified by:
createSingleInstanceOfClient
in class AbstractFtpClientFactory<org.apache.commons.net.ftp.FTPSClient>