org.apache.servicemix.ftp
Class FTPClientPool
java.lang.Object
org.apache.servicemix.ftp.SocketClientPoolSupport
org.apache.servicemix.ftp.FTPClientPool
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class FTPClientPool
- extends SocketClientPoolSupport
A pool of FTP clients for
the Jakarta Commons Net library
- Version:
- $Revision: 426415 $
| Methods inherited from class org.apache.servicemix.ftp.SocketClientPoolSupport |
afterPropertiesSet, borrowClient, destroy, destroyObject, getAddress, getHost, getLocalAddress, getLocalPort, getPool, getPort, makeObject, returnClient, setAddress, setHost, setLocalAddress, setLocalPort, setPool, setPort |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DATA_TIMEOUT
public static final int DEFAULT_DATA_TIMEOUT
- See Also:
- Constant Field Values
DEFAULT_CONTROL_ENCODING
public static final String DEFAULT_CONTROL_ENCODING
- See Also:
- Constant Field Values
FTPClientPool
public FTPClientPool()
validateObject
public boolean validateObject(Object object)
- Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory- Overrides:
validateObject in class SocketClientPoolSupport
activateObject
public void activateObject(Object object)
throws Exception
- Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory- Overrides:
activateObject in class SocketClientPoolSupport
- Throws:
Exception
passivateObject
public void passivateObject(Object object)
throws Exception
- Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory- Overrides:
passivateObject in class SocketClientPoolSupport
- Throws:
Exception
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
isBinaryMode
public boolean isBinaryMode()
setBinaryMode
public void setBinaryMode(boolean binaryMode)
isPassiveMode
public boolean isPassiveMode()
- Returns:
- the passiveMode
setPassiveMode
public void setPassiveMode(boolean passiveMode)
- Parameters:
passiveMode - the passiveMode to set
getConfig
public org.apache.commons.net.ftp.FTPClientConfig getConfig()
setConfig
public void setConfig(org.apache.commons.net.ftp.FTPClientConfig config)
getControlEncoding
public String getControlEncoding()
- Returns:
- the controlEncoding
setControlEncoding
public void setControlEncoding(String controlEncoding)
- Parameters:
controlEncoding - the controlEncoding to set
getDataTimeout
public int getDataTimeout()
- Returns:
- the dataTimeout
setDataTimeout
public void setDataTimeout(int dataTimeout)
- Parameters:
dataTimeout - the dataTimeout to set
connect
protected void connect(org.apache.commons.net.SocketClient client)
throws Exception
- Overrides:
connect in class SocketClientPoolSupport
- Throws:
Exception
disconnect
protected void disconnect(org.apache.commons.net.SocketClient client)
throws Exception
- Overrides:
disconnect in class SocketClientPoolSupport
- Throws:
Exception
createSocketClient
protected org.apache.commons.net.SocketClient createSocketClient()
- Specified by:
createSocketClient in class SocketClientPoolSupport
Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.