Spring Integration

org.springframework.integration.ftp
Class DefaultFtpsClientFactory

java.lang.Object
  extended by org.springframework.integration.ftp.AbstractFtpClientFactory<org.apache.commons.net.ftp.FTPSClient>
      extended by org.springframework.integration.ftp.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

Author:
Josh Long

Field Summary
 
Fields inherited from class org.springframework.integration.ftp.AbstractFtpClientFactory
clientMode, config, fileType, host, password, port, remoteWorkingDirectory, username
 
Constructor Summary
DefaultFtpsClientFactory()
           
 
Method Summary
protected  org.apache.commons.net.ftp.FTPSClient createSingleInstanceOfClient()
           
 org.apache.commons.net.ftp.FTPSClient getClient()
           
static void main(String[] args)
           
protected  void onAfterConnect(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.
 void setAuthValue(String authValue)
           
 void setCipherSuites(String[] cipherSuites)
           
 void setImplicit(boolean implicit)
           
 void setKeyManager(KeyManager keyManager)
           
 void setNeedClientAuth(Boolean needClientAuth)
           
 void setProt(String prot)
           
 void setProtocol(String protocol)
           
 void setProtocols(String[] protocols)
           
 void setSessionCreation(Boolean sessionCreation)
           
 void setTrustManager(TrustManager trustManager)
           
 void setUseClientMode(Boolean useClientMode)
           
 void setWantsClientAuth(Boolean wantsClientAuth)
           
 
Methods inherited from class org.springframework.integration.ftp.AbstractFtpClientFactory
setClientMode, 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

DefaultFtpsClientFactory

public DefaultFtpsClientFactory()
Method Detail

setProtocol

public void setProtocol(String protocol)

main

public static void main(String[] args)
                 throws Throwable
Throws:
Throwable

setUseClientMode

public void setUseClientMode(Boolean useClientMode)

setSessionCreation

public void setSessionCreation(Boolean sessionCreation)

setAuthValue

public void setAuthValue(String authValue)

setTrustManager

public void setTrustManager(TrustManager trustManager)

setCipherSuites

public void setCipherSuites(String[] cipherSuites)

setProtocols

public void setProtocols(String[] protocols)

setKeyManager

public void setKeyManager(KeyManager keyManager)

setNeedClientAuth

public void setNeedClientAuth(Boolean needClientAuth)

setWantsClientAuth

public void setWantsClientAuth(Boolean wantsClientAuth)

setProt

public void setProt(String prot)

onAfterConnect

protected void onAfterConnect(org.apache.commons.net.ftp.FTPSClient ftpsClient)
                       throws 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:
IOException - if anything should go wrong

getClient

public org.apache.commons.net.ftp.FTPSClient getClient()
                                                throws SocketException,
                                                       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:
IOException - thrown when a networking IO subsystem error occurs
SocketException

setImplicit

public void setImplicit(boolean implicit)

createSingleInstanceOfClient

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

Spring Integration

Copyright © 2010. All Rights Reserved.