| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECT_TIMEOUT |
static String |
DEFAULT_CONTEXT_PROTOCOL |
static List<String> |
DEFAULT_DISABLED_PROTOCOLS |
static int |
DEFAULT_LOCAL_PORT |
static int |
DEFAULT_RECEIVE_BUFFER_SIZE |
static int |
DEFAULT_SEND_BUFFER_SIZE |
static int |
DEFAULT_SO_LINGER |
static int |
DEFAULT_SO_TIMEOUT |
static int |
DEFAULT_SSL_PORT |
static String |
DEFAULT_STORE_TYPE |
static boolean |
DEFAULT_TCP_KEEP_ALIVE |
static boolean |
DEFAULT_TCP_NO_DELAY |
static int |
DEFAULT_TCP_PORT |
static boolean |
DEFAULT_TRACE_BYTES |
static int |
DEFAULT_TRAFFIC_CLASS |
static boolean |
DEFAULT_TRUST_ALL |
static boolean |
DEFAULT_USE_EPOLL |
static boolean |
DEFAULT_USE_KQUEUE |
static boolean |
DEFAULT_USE_OPENSSL |
static boolean |
DEFAULT_VERIFY_HOST |
| Constructor and Description |
|---|
TransportOptions() |
| Modifier and Type | Method and Description |
|---|---|
TransportOptions |
clone() |
protected TransportOptions |
copyOptions(TransportOptions copy) |
int |
getConnectTimeout() |
String |
getContextProtocol() |
int |
getDefaultSslPort() |
int |
getDefaultTcpPort() |
String[] |
getDisabledCipherSuites() |
String[] |
getDisabledProtocols() |
String[] |
getEnabledCipherSuites() |
String[] |
getEnabledProtocols() |
Map<String,String> |
getHttpHeaders() |
String |
getKeyAlias() |
String |
getKeyStoreLocation() |
String |
getKeyStorePassword() |
String |
getKeyStoreType() |
String |
getLocalAddress() |
int |
getLocalPort() |
<T> Supplier<T> |
getProxyHandlerSupplier() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoLinger() |
int |
getSoTimeout() |
SSLContext |
getSslContextOverride() |
int |
getTrafficClass() |
String |
getTrustStoreLocation() |
String |
getTrustStorePassword() |
String |
getTrustStoreType() |
boolean |
isTcpKeepAlive() |
boolean |
isTcpNoDelay() |
boolean |
isTraceBytes() |
boolean |
isTrustAll() |
boolean |
isUseEpoll() |
boolean |
isUseKQueue() |
boolean |
isUseOpenSSL() |
boolean |
isVerifyHost() |
void |
setConnectTimeout(int connectTimeout) |
void |
setContextProtocol(String contextProtocol)
The protocol value to use when creating an SSLContext via
SSLContext.getInstance(protocol).
|
void |
setDefaultSslPort(int defaultSslPort) |
void |
setDefaultTcpPort(int defaultTcpPort) |
void |
setDisabledCipherSuites(String[] disabledCipherSuites) |
void |
setDisabledProtocols(String[] disabledProtocols)
The protocols to be disable.
|
void |
setEnabledCipherSuites(String[] enabledCipherSuites) |
void |
setEnabledProtocols(String[] enabledProtocols)
The protocols to be set as enabled.
|
void |
setKeyAlias(String keyAlias) |
void |
setKeyStoreLocation(String keyStoreLocation)
Sets the location on disk of the key store to use.
|
void |
setKeyStorePassword(String keyStorePassword) |
void |
setKeyStoreType(String keyStoreType) |
void |
setLocalAddress(String localAddress) |
void |
setLocalPort(int localPort) |
<T> void |
setProxyHandlerSupplier(Supplier<T> proxyHandlerFactory) |
void |
setReceiveBufferSize(int receiveBufferSize)
Sets the receive buffer size in bytes, the value must be greater than zero
or an
IllegalArgumentException will be thrown. |
void |
setSendBufferSize(int sendBufferSize)
Sets the send buffer size in bytes, the value must be greater than zero
or an
IllegalArgumentException will be thrown. |
void |
setSoLinger(int soLinger) |
void |
setSoTimeout(int soTimeout) |
void |
setSslContextOverride(SSLContext sslContextOverride) |
void |
setStoreType(String storeType) |
void |
setTcpKeepAlive(boolean keepAlive) |
void |
setTcpNoDelay(boolean tcpNoDelay) |
void |
setTraceBytes(boolean traceBytes)
Determines if the transport should add a logger for bytes in / out
|
void |
setTrafficClass(int trafficClass)
Sets the traffic class value used by the TCP connection, valid
range is between 0 and 255.
|
void |
setTrustAll(boolean trustAll) |
void |
setTrustStoreLocation(String trustStoreLocation) |
void |
setTrustStorePassword(String trustStorePassword) |
void |
setTrustStoreType(String trustStoreType) |
void |
setUseEpoll(boolean useEpoll)
Determines if the netty epoll transport can be used if available on this platform.
|
void |
setUseKQueue(boolean useKQueue)
Determines if the netty kqueue transport can be used if available on this platform.
|
void |
setUseOpenSSL(boolean useOpenSSL) |
void |
setVerifyHost(boolean verifyHost) |
public static final int DEFAULT_SEND_BUFFER_SIZE
public static final int DEFAULT_RECEIVE_BUFFER_SIZE
public static final int DEFAULT_TRAFFIC_CLASS
public static final boolean DEFAULT_TCP_NO_DELAY
public static final boolean DEFAULT_TCP_KEEP_ALIVE
public static final int DEFAULT_SO_LINGER
public static final int DEFAULT_SO_TIMEOUT
public static final int DEFAULT_CONNECT_TIMEOUT
public static final int DEFAULT_TCP_PORT
public static final boolean DEFAULT_USE_EPOLL
public static final boolean DEFAULT_USE_KQUEUE
public static final boolean DEFAULT_TRACE_BYTES
public static final String DEFAULT_STORE_TYPE
public static final String DEFAULT_CONTEXT_PROTOCOL
public static final boolean DEFAULT_TRUST_ALL
public static final boolean DEFAULT_VERIFY_HOST
public static final int DEFAULT_SSL_PORT
public static final boolean DEFAULT_USE_OPENSSL
public static final int DEFAULT_LOCAL_PORT
public TransportOptions clone()
public int getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
IllegalArgumentException will be thrown.sendBufferSize - the new send buffer size for the TCP Transport.IllegalArgumentException - if the value given is not in the valid range.public int getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
IllegalArgumentException will be thrown.receiveBufferSize - the new receive buffer size for the TCP Transport.IllegalArgumentException - if the value given is not in the valid range.public int getTrafficClass()
public void setTrafficClass(int trafficClass)
trafficClass - the new traffic class value.IllegalArgumentException - if the value given is not in the valid range.public int getSoTimeout()
public void setSoTimeout(int soTimeout)
public boolean isTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
public int getSoLinger()
public void setSoLinger(int soLinger)
public boolean isTcpKeepAlive()
public void setTcpKeepAlive(boolean keepAlive)
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getDefaultTcpPort()
public void setDefaultTcpPort(int defaultTcpPort)
public String getLocalAddress()
public void setLocalAddress(String localAddress)
public int getLocalPort()
public void setLocalPort(int localPort)
public boolean isUseEpoll()
public void setUseEpoll(boolean useEpoll)
useEpoll - should use of available epoll transport be used.public boolean isUseKQueue()
public void setUseKQueue(boolean useKQueue)
useKQueue - should use of available kqueue transport be used.public boolean isTraceBytes()
public void setTraceBytes(boolean traceBytes)
traceBytes - should the transport log the bytes in and out.public String getKeyStoreLocation()
public void setKeyStoreLocation(String keyStoreLocation)
keyStoreLocation - the keyStoreLocation to use to create the key manager.public String getKeyStorePassword()
public void setKeyStorePassword(String keyStorePassword)
keyStorePassword - the keyStorePassword to setpublic String getTrustStoreLocation()
public void setTrustStoreLocation(String trustStoreLocation)
trustStoreLocation - the trustStoreLocation to setpublic String getTrustStorePassword()
public void setTrustStorePassword(String trustStorePassword)
trustStorePassword - the trustStorePassword to setpublic void setStoreType(String storeType)
storeType - the format that the store files are encoded in.public String getKeyStoreType()
public void setKeyStoreType(String keyStoreType)
keyStoreType - the format that the keyStore file is encoded inpublic String getTrustStoreType()
public void setTrustStoreType(String trustStoreType)
trustStoreType - the format that the trustStore file is encoded inpublic String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(String[] enabledCipherSuites)
enabledCipherSuites - the enabledCipherSuites to setpublic String[] getDisabledCipherSuites()
public void setDisabledCipherSuites(String[] disabledCipherSuites)
disabledCipherSuites - the disabledCipherSuites to setpublic String[] getEnabledProtocols()
public void setEnabledProtocols(String[] enabledProtocols)
enabledProtocols - the enabled protocols to set, or null if the defaults should be used.public String[] getDisabledProtocols()
public void setDisabledProtocols(String[] disabledProtocols)
disabledProtocols - the protocols to disable, or null if none should be.public String getContextProtocol()
public void setContextProtocol(String contextProtocol)
contextProtocol - the context protocol to use.public boolean isTrustAll()
public void setTrustAll(boolean trustAll)
trustAll - the trustAll to setpublic boolean isVerifyHost()
public void setVerifyHost(boolean verifyHost)
verifyHost - the verifyHost to setpublic String getKeyAlias()
public void setKeyAlias(String keyAlias)
keyAlias - the key alias to usepublic int getDefaultSslPort()
public void setDefaultSslPort(int defaultSslPort)
public void setSslContextOverride(SSLContext sslContextOverride)
public SSLContext getSslContextOverride()
public <T> Supplier<T> getProxyHandlerSupplier()
public <T> void setProxyHandlerSupplier(Supplier<T> proxyHandlerFactory)
public boolean isUseOpenSSL()
public void setUseOpenSSL(boolean useOpenSSL)
useOpenSSL - Configure if the transport should attempt to use OpenSSL support if available.protected TransportOptions copyOptions(TransportOptions copy)
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.