public class FtpManagedConnectionFactory extends BasicManagedConnectionFactory
Modifier and Type | Field and Description |
---|---|
protected Integer |
bufferSize |
protected Integer |
clientMode |
protected org.apache.commons.net.ftp.FTPClientConfig |
config |
protected String |
controlEncoding |
protected Integer |
fileType |
protected String |
host |
protected String |
password |
protected Integer |
port |
protected String |
username |
static BundleUtil |
UTIL |
Constructor and Description |
---|
FtpManagedConnectionFactory() |
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapter
public static final BundleUtil UTIL
protected org.apache.commons.net.ftp.FTPClientConfig config
protected String username
protected String host
protected String password
protected Integer port
protected Integer bufferSize
protected Integer clientMode
protected Integer fileType
protected String controlEncoding
public org.apache.commons.net.ftp.FTPClientConfig getConfig()
public String getParentDirectory()
public void setParentDirectory(String parentDirectory)
public String getFileMapping()
public void setFileMapping(String fileMapping)
public void setConfig(org.apache.commons.net.ftp.FTPClientConfig config)
public String getUsername()
public void setUsername(String username)
public String getHost()
public void setHost(String host)
public String getPassword()
public void setPassword(String password)
public Integer getPort()
public void setPort(Integer port)
public Integer getBufferSize()
public void setBufferSize(Integer bufferSize)
public Integer getClientMode()
public void setClientMode(Integer clientMode)
public Integer getFileType()
public void setFileType(Integer fileType)
FTP
constants:
FTP.ASCII_FILE_TYPE
FTP.EBCDIC_FILE_TYPE
FTP.BINARY_FILE_TYPE
FTP.LOCAL_FILE_TYPE
fileType
- The file type.public String getControlEncoding()
public void setControlEncoding(String controlEncoding)
public Integer getConnectTimeout()
public void setConnectTimeout(Integer connectTimeout)
public Integer getDefaultTimeout()
public void setDefaultTimeout(Integer defaultTimeout)
public Integer getDataTimeout()
public void setDataTimeout(Integer dataTimeout)
public Boolean getIsFtps()
public void setIsFtps(Boolean isFtps)
public Boolean getUseClientMode()
public void setUseClientMode(Boolean useClientMode)
public Boolean getSessionCreation()
public void setSessionCreation(Boolean sessionCreation)
public String getAuthValue()
public void setAuthValue(String authValue)
public String getCertificate()
public void setCertificate(String certificate)
public String getCipherSuites()
public void setCipherSuites(String cipherSuites)
public String getProtocols()
public void setProtocols(String protocols)
public String getKeyPath()
public void setKeyPath(String keyPath)
public String getKeyPassword()
public void setKeyPassword(String keyPassword)
public Boolean getNeedClientAuth()
public void setNeedClientAuth(Boolean needClientAuth)
public Boolean getWantsClientAuth()
public void setWantsClientAuth(Boolean wantsClientAuth)
public Boolean isImplicit()
public void setImplicit(Boolean implicit)
public String getExecProt()
public void setExecProt(String execProt)
public String getProtocol()
public void setProtocol(String protocol)
public BasicConnectionFactory<FtpFileConnectionImpl> createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
createConnectionFactory
in class BasicManagedConnectionFactory
javax.resource.ResourceException
protected org.apache.commons.net.ftp.FTPClient createClient() throws IOException, javax.resource.ResourceException
IOException
javax.resource.ResourceException
public int hashCode()
Copyright © 2020. All rights reserved.