org.springframework.integration.ftp
Class DefaultFtpsClientFactory
java.lang.Object
org.springframework.integration.ftp.AbstractFtpClientFactory<org.apache.commons.net.ftp.FTPSClient>
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
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(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>
Copyright © 2010. All Rights Reserved.