Modifier and Type | Method and Description |
---|---|
static FTPSEnvironment |
FTPSEnvironment.copy(Map<String,?> env)
Copies a map to create a new
FTPSEnvironment instance. |
FTPSEnvironment |
FTPSEnvironment.withActiveExternalIPAddress(String ipAddress) |
FTPSEnvironment |
FTPSEnvironment.withActivePortRange(int minPort,
int maxPort) |
FTPSEnvironment |
FTPSEnvironment.withAuthCommand(String command)
Stores the AUTH command to use.
|
FTPSEnvironment |
FTPSEnvironment.withAutodetectEncoding(boolean autodetect) |
FTPSEnvironment |
FTPSEnvironment.withBufferSize(int bufferSize) |
FTPSEnvironment |
FTPSEnvironment.withCharset(Charset charset) |
FTPSEnvironment |
FTPSEnvironment.withClientConfig(FTPClientConfig clientConfig) |
FTPSEnvironment |
FTPSEnvironment.withConnectionMode(ConnectionMode connectionMode) |
FTPSEnvironment |
FTPSEnvironment.withConnectTimeout(int timeout) |
FTPSEnvironment |
FTPSEnvironment.withControlEncoding(String encoding) |
FTPSEnvironment |
FTPSEnvironment.withControlKeepAliveReplyTimeout(Duration timeout)
Stores how long to wait for control keep-alive message replies.
|
FTPSEnvironment |
FTPSEnvironment.withControlKeepAliveReplyTimeout(int timeout)
Deprecated.
Use
withControlKeepAliveReplyTimeout(Duration) instead. |
FTPSEnvironment |
FTPSEnvironment.withControlKeepAliveTimeout(Duration timeout)
Stores the time to wait between sending control connection keep-alive messages when processing file upload or download.
|
FTPSEnvironment |
FTPSEnvironment.withControlKeepAliveTimeout(long timeout)
Deprecated.
Use
withControlKeepAliveTimeout(Duration) instead. |
FTPSEnvironment |
FTPSEnvironment.withCredentials(String username,
char[] password) |
FTPSEnvironment |
FTPSEnvironment.withCredentials(String username,
char[] password,
String account) |
FTPSEnvironment |
FTPSEnvironment.withDataChannelProtectionLevel(DataChannelProtectionLevel dataChannelProtectionLevel)
Stores the data channel protection level to use.
|
FTPSEnvironment |
FTPSEnvironment.withDataTimeout(Duration timeout)
Stores the timeout to use when reading from data connections.
|
FTPSEnvironment |
FTPSEnvironment.withDataTimeout(int timeout)
Deprecated.
Use
withDataTimeout(Duration) instead. |
FTPSEnvironment |
FTPSEnvironment.withDefaultDirectory(String pathname) |
FTPSEnvironment |
FTPSEnvironment.withEnabledCipherSuites(String... cipherSuites)
Stores the names of the cipher suites which could be enabled for use on connections.
|
FTPSEnvironment |
FTPSEnvironment.withEnabledProtocols(String... protocolVersions)
Stores which particular protocol versions are enabled for use on connections.
|
FTPSEnvironment |
FTPSEnvironment.withEnabledSessionCreation(boolean established)
Stores whether or not new SSL sessions may be established by sockets.
|
FTPSEnvironment |
FTPSEnvironment.withEndpointCheckingEnabled(boolean enabled)
Stores whether or not endpoint identification using the HTTPS algorithm should be enabled.
|
FTPSEnvironment |
FTPSEnvironment.withFileSystemExceptionFactory(FileSystemExceptionFactory factory) |
FTPSEnvironment |
FTPSEnvironment.withFTPFileStrategyFactory(FTPFileStrategyFactory factory) |
FTPSEnvironment |
FTPSEnvironment.withHostnameVerifier(HostnameVerifier hostnameVerifier)
Stores the hostname verifier to use.
|
FTPSEnvironment |
FTPSEnvironment.withIpAddressFromPasvResponse(boolean usingIpAddressFromPasvResponse)
Sets whether or not the IP address from the server's response should be used.
|
FTPSEnvironment |
FTPSEnvironment.withKeepAlive(boolean keepAlive) |
FTPSEnvironment |
FTPSEnvironment.withKeyManager(KeyManager keyManager)
Stores the key manager to use.
|
FTPSEnvironment |
FTPSEnvironment.withListHiddenFiles(boolean listHiddenFiles)
Stores whether or not to list hidden files.
|
FTPSEnvironment |
FTPSEnvironment.withLocalAddress(InetAddress localAddr,
int localPort) |
FTPSEnvironment |
FTPSEnvironment.withNeedClientAuth(boolean needClientAuth)
Stores whether or not sockets will require client authentication.
|
FTPSEnvironment |
FTPSEnvironment.withParserFactory(FTPFileEntryParserFactory parserFactory) |
FTPSEnvironment |
FTPSEnvironment.withPassiveLocalIPAddress(String ipAddress) |
FTPSEnvironment |
FTPSEnvironment.withPassiveNatWorkaroundStrategy(FTPClient.HostnameResolver resolver)
Stores the workaround strategy to replace the PASV mode reply addresses.
|
FTPSEnvironment |
FTPSEnvironment.withPoolConfig(FTPPoolConfig poolConfig)
Stores the pool config to use.
|
FTPSEnvironment |
FTPSEnvironment.withProtocol(String protocol)
Stores the protocol to use.
|
FTPSEnvironment |
FTPSEnvironment.withProxy(Proxy proxy) |
FTPSEnvironment |
FTPSEnvironment.withReceiveBufferSize(int size) |
FTPSEnvironment |
FTPSEnvironment.withReceiveDataSocketBufferSize(int bufferSize) |
FTPSEnvironment |
FTPSEnvironment.withRemoteVerificationEnabled(boolean enabled) |
FTPSEnvironment |
FTPSEnvironment.withReportActiveExternalIPAddress(String ipAddress) |
FTPSEnvironment |
FTPSEnvironment.withSecurityMode(SecurityMode securityMode)
Stores the security mode to use.
|
FTPSEnvironment |
FTPSEnvironment.withSendBufferSize(int size) |
FTPSEnvironment |
FTPSEnvironment.withSendDataSocketBufferSize(int bufferSizr) |
FTPSEnvironment |
FTPSEnvironment.withServerSocketFactory(ServerSocketFactory factory) |
FTPSEnvironment |
FTPSEnvironment.withSocketFactory(SocketFactory factory) |
FTPSEnvironment |
FTPSEnvironment.withSoLinger(boolean on,
int linger) |
FTPSEnvironment |
FTPSEnvironment.withSoTimeout(int timeout) |
FTPSEnvironment |
FTPSEnvironment.withSSLContext(SSLContext sslContext)
Stores the SSL context to use.
|
FTPSEnvironment |
FTPSEnvironment.withStrictMultilineParsing(boolean strictMultilineParsing)
Stores whether or not strict multiline parsing should be enabled, as per RFC 959, section 4.2.
|
FTPSEnvironment |
FTPSEnvironment.withTcpNoDelay(boolean on) |
FTPSEnvironment |
FTPSEnvironment.withTrustManager(TrustManager trustManager)
Stores the trust manager to use.
|
FTPSEnvironment |
FTPSEnvironment.withUseClientMode(boolean useClientMode)
Stores whether or not sockets are set to use client mode in their first handshake.
|
FTPSEnvironment |
FTPSEnvironment.withUseEPSVwithIPv4(boolean selected) |
FTPSEnvironment |
FTPSEnvironment.withWantClientAuth(boolean wantClientAuth)
Stores whether or not sockets will request client authentication.
|
Modifier and Type | Method and Description |
---|---|
static void |
FTPSEnvironment.setDefault(FTPSEnvironment defaultEnvironment)
Sets the default FTPS environment.
|
Copyright © 2016–2024. All rights reserved.