org.springframework.integration.ftp.session
Class DefaultFtpsSessionFactory

java.lang.Object
  extended by org.springframework.integration.ftp.session.AbstractFtpSessionFactory<org.apache.commons.net.ftp.FTPSClient>
      extended by org.springframework.integration.ftp.session.DefaultFtpsSessionFactory
All Implemented Interfaces:
SessionFactory

public class DefaultFtpsSessionFactory
extends AbstractFtpSessionFactory<org.apache.commons.net.ftp.FTPSClient>

SessionFactory for FTPS.

Since:
2.0

Field Summary
 
Fields inherited from class org.springframework.integration.ftp.session.AbstractFtpSessionFactory
clientMode, config, DEFAULT_REMOTE_WORKING_DIRECTORY, fileType, host, password, port, remoteWorkingDirectory, username
 
Constructor Summary
DefaultFtpsSessionFactory()
           
 
Method Summary
protected  void afterConnect(org.apache.commons.net.ftp.FTPSClient ftpsClient)
          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.
protected  org.apache.commons.net.ftp.FTPSClient createClientInstance()
           
protected  void postProcessClient(org.apache.commons.net.ftp.FTPSClient ftpsClient)
           
 void setAuthValue(java.lang.String authValue)
           
 void setCipherSuites(java.lang.String[] cipherSuites)
           
 void setImplicit(boolean implicit)
           
 void setKeyManager(javax.net.ssl.KeyManager keyManager)
           
 void setNeedClientAuth(java.lang.Boolean needClientAuth)
           
 void setProt(java.lang.String prot)
           
 void setProtocol(java.lang.String protocol)
           
 void setProtocols(java.lang.String[] protocols)
           
 void setSessionCreation(java.lang.Boolean sessionCreation)
           
 void setTrustManager(javax.net.ssl.TrustManager trustManager)
           
 void setUseClientMode(java.lang.Boolean useClientMode)
           
 void setWantsClientAuth(java.lang.Boolean wantsClientAuth)
           
 
Methods inherited from class org.springframework.integration.ftp.session.AbstractFtpSessionFactory
getSession, setClientMode, setConfig, setFileType, setHost, setPassword, setPort, setRemoteWorkingDirectory, setUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFtpsSessionFactory

public DefaultFtpsSessionFactory()
Method Detail

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)

createClientInstance

protected org.apache.commons.net.ftp.FTPSClient createClientInstance()
Specified by:
createClientInstance in class AbstractFtpSessionFactory<org.apache.commons.net.ftp.FTPSClient>

afterConnect

protected void afterConnect(org.apache.commons.net.ftp.FTPSClient ftpsClient)
                     throws java.io.IOException
Description copied from class: AbstractFtpSessionFactory
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:
afterConnect in class AbstractFtpSessionFactory<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

postProcessClient

protected void postProcessClient(org.apache.commons.net.ftp.FTPSClient ftpsClient)
                          throws java.io.IOException
Overrides:
postProcessClient in class AbstractFtpSessionFactory<org.apache.commons.net.ftp.FTPSClient>
Throws:
java.io.IOException