Modifier and Type | Class and Description |
---|---|
class |
FTPSEnvironment
A utility class to set up environments that can be used in the
FileSystemProvider.newFileSystem(URI, Map) and
FileSystemProvider.newFileSystem(Path, Map) methods of FTPSFileSystemProvider . |
Modifier and Type | Method and Description |
---|---|
static FTPEnvironment |
FTPEnvironment.copy(Map<String,?> env)
Copies a map to create a new
FTPEnvironment instance. |
FTPEnvironment |
FTPEnvironment.withActiveExternalIPAddress(String ipAddress)
Stores the external IP address in active mode.
|
FTPEnvironment |
FTPEnvironment.withActivePortRange(int minPort,
int maxPort)
Stores the client side port range in active mode.
|
FTPEnvironment |
FTPEnvironment.withAutodetectEncoding(boolean autodetect)
Stores whether or not automatic server encoding detection should be enabled.
|
FTPEnvironment |
FTPEnvironment.withBufferSize(int bufferSize)
Stores the buffer size to use.
|
FTPEnvironment |
FTPEnvironment.withCharset(Charset charset)
Stores the charset to use.
|
FTPEnvironment |
FTPEnvironment.withClientConfig(FTPClientConfig clientConfig)
Stores the FTP client config to use.
|
FTPEnvironment |
FTPEnvironment.withConnectionMode(ConnectionMode connectionMode)
Stores the connection mode to use.
|
FTPEnvironment |
FTPEnvironment.withConnectTimeout(int timeout)
Stores the connection timeout to use.
|
FTPEnvironment |
FTPEnvironment.withControlEncoding(String encoding)
Stores the character encoding to be used by the FTP control connection.
|
FTPEnvironment |
FTPEnvironment.withControlKeepAliveReplyTimeout(Duration timeout)
Stores how long to wait for control keep-alive message replies.
|
FTPEnvironment |
FTPEnvironment.withControlKeepAliveReplyTimeout(int timeout)
Deprecated.
Use
withControlKeepAliveReplyTimeout(Duration) instead. |
FTPEnvironment |
FTPEnvironment.withControlKeepAliveTimeout(Duration timeout)
Stores the time to wait between sending control connection keep-alive messages when processing file upload or download.
|
FTPEnvironment |
FTPEnvironment.withControlKeepAliveTimeout(long timeout)
Deprecated.
Use
withControlKeepAliveTimeout(Duration) instead. |
FTPEnvironment |
FTPEnvironment.withCredentials(String username,
char[] password)
Stores the credentials to use.
|
FTPEnvironment |
FTPEnvironment.withCredentials(String username,
char[] password,
String account)
Stores the credentials to use.
|
FTPEnvironment |
FTPEnvironment.withDataTimeout(Duration timeout)
Stores the timeout to use when reading from data connections.
|
FTPEnvironment |
FTPEnvironment.withDataTimeout(int timeout)
Deprecated.
Use
withDataTimeout(Duration) instead. |
FTPEnvironment |
FTPEnvironment.withDefaultDirectory(String pathname)
Stores the default directory to use.
|
FTPEnvironment |
FTPEnvironment.withFileSystemExceptionFactory(FileSystemExceptionFactory factory)
Stores the file system exception factory to use.
|
FTPEnvironment |
FTPEnvironment.withFTPFileStrategyFactory(FTPFileStrategyFactory factory)
Stores the FTP file strategy factory to use.
|
FTPEnvironment |
FTPEnvironment.withIpAddressFromPasvResponse(boolean usingIpAddressFromPasvResponse)
Sets whether or not the IP address from the server's response should be used.
|
FTPEnvironment |
FTPEnvironment.withKeepAlive(boolean keepAlive)
Stores whether or not
SO_KEEPALIVE should be enabled. |
FTPEnvironment |
FTPEnvironment.withListHiddenFiles(boolean listHiddenFiles)
Stores whether or not to list hidden files.
|
FTPEnvironment |
FTPEnvironment.withLocalAddress(InetAddress localAddr,
int localPort)
Stores the local address to use.
|
FTPEnvironment |
FTPEnvironment.withParserFactory(FTPFileEntryParserFactory parserFactory)
Stores the factory used for parser creation.
|
FTPEnvironment |
FTPEnvironment.withPassiveLocalIPAddress(String ipAddress)
Stores the local IP address to use in passive mode.
|
FTPEnvironment |
FTPEnvironment.withPassiveNatWorkaroundStrategy(FTPClient.HostnameResolver resolver)
Stores the workaround strategy to replace the PASV mode reply addresses.
|
FTPEnvironment |
FTPEnvironment.withPoolConfig(FTPPoolConfig poolConfig)
Stores the pool config to use.
|
FTPEnvironment |
FTPEnvironment.withProxy(Proxy proxy)
Stores the proxy to use.
|
FTPEnvironment |
FTPEnvironment.withReceiveBufferSize(int size)
Stores the socket receive buffer size to use.
|
FTPEnvironment |
FTPEnvironment.withReceiveDataSocketBufferSize(int bufferSize)
Stores the value to use for the data socket
SO_RCVBUF option. |
FTPEnvironment |
FTPEnvironment.withRemoteVerificationEnabled(boolean enabled)
Stores whether or not verification that the remote host taking part of a data connection is the same as the host to which the control
connection is attached should be enabled.
|
FTPEnvironment |
FTPEnvironment.withReportActiveExternalIPAddress(String ipAddress)
Stores the external IP address to report in EPRT/PORT commands in active mode.
|
FTPEnvironment |
FTPEnvironment.withSendBufferSize(int size)
Stores the socket send buffer size to use.
|
FTPEnvironment |
FTPEnvironment.withSendDataSocketBufferSize(int bufferSizr)
Stores the value to use for the data socket
SO_SNDBUF option. |
FTPEnvironment |
FTPEnvironment.withServerSocketFactory(ServerSocketFactory factory)
Stores the server socket factory to use.
|
FTPEnvironment |
FTPEnvironment.withSocketFactory(SocketFactory factory)
Stores the socket factory to use.
|
FTPEnvironment |
FTPEnvironment.withSoLinger(boolean on,
int linger)
Stores whether or not
SO_LINGER should be enabled, and if so, the linger time. |
FTPEnvironment |
FTPEnvironment.withSoTimeout(int timeout)
Stores the socket timeout.
|
FTPEnvironment |
FTPEnvironment.withStrictMultilineParsing(boolean strictMultilineParsing)
Stores whether or not strict multiline parsing should be enabled, as per RFC 959, section 4.2.
|
FTPEnvironment |
FTPEnvironment.withTcpNoDelay(boolean on)
Stores whether or not the Nagle's algorithm (
TCP_NODELAY ) should be enabled. |
FTPEnvironment |
FTPEnvironment.withUseEPSVwithIPv4(boolean selected)
Stores whether or not to use EPSV with IPv4.
|
Modifier and Type | Method and Description |
---|---|
static void |
FTPEnvironment.setDefault(FTPEnvironment defaultEnvironment)
Sets the default FTP environment.
|
Copyright © 2016–2024. All rights reserved.