Class WebSocketClientOptions
java.lang.Object
io.vertx.core.net.NetworkOptions
io.vertx.core.net.TCPSSLOptions
io.vertx.core.net.ClientOptionsBase
io.vertx.core.http.WebSocketClientOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDefault offering of theserver_no_context_takeoverWebSocket parameter deflate compression extension =falsestatic final intDefault WebSocket closing timeout = 10 secondstatic final intDefault WebSocket deflate compression level = 6static final StringThe default value for host name = "localhost"static final intThe default value for port = 80static final intThe default value for the maximum number of WebSocket = 50static final intThe default value for maximum WebSocket frame size = 65536 bytesstatic final intThe default value for maximum WebSocket messages (could be assembled from multiple frames) is 4 full frames worth of datastatic final booleanDefault offering of theclient_no_context_takeoverWebSocket parameter deflate compression extension =falsestatic final booleanDefault WebSocket masked bit is true as depicted by RFC =falsestatic final booleanDefault offer WebSocket per-frame deflate compression extension =falsestatic final booleanDefault offer WebSocket per-message deflate compression extension =falseFields inherited from class ClientOptionsBase
DEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAMEFields inherited from class TCPSSLOptions
DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_READ_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEAPLIVE_COUNT, DEFAULT_TCP_KEEAPLIVE_IDLE_SECONDS, DEFAULT_TCP_KEEAPLIVE_INTERVAL_SECONDS, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_TCP_USER_TIMEOUT, DEFAULT_WRITE_IDLE_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy constructorConstructor to create an options from JSON -
Method Summary
Modifier and TypeMethodDescriptionaddCrlPath(String crlPath) Add a CRL pathaddCrlValue(Buffer crlValue) Add a CRL valueaddEnabledCipherSuite(String suite) Add an enabled cipher suite, appended to the ordered suites.addEnabledSecureTransportProtocol(String protocol) Add an enabled SSL/TLS protocols, appended to the ordered protocols.addNonProxyHost(String host) Add ahostto theClientOptionsBase.getNonProxyHosts()list.intbooleanintbooleanGet the default host name to be used by this client in requests if none is provided when making the request.intGet the default port to be used by this client in requests if none is provided when making the request.intGet the maximum of WebSockets per endpoint.intGet the maximum WebSocket frame size to useintGet the maximum WebSocket message size to usegetName()booleanbooleanbooleanbooleanisShared()booleanIs hostname verification (for SSL/TLS) enabled?removeEnabledCipherSuite(String suite) Removes an enabled cipher suite from the ordered suites.setActivityLogDataFormat(ByteBufFormat activityLogDataFormat) Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.setClosingTimeout(int closingTimeout) Set the amount of time a client WebSocket will wait until it closes the TCP connection after receiving a close frame.setCompressionAllowClientNoContext(boolean offer) Set whether theclient_no_context_takeoverparameter of the WebSocket per-message deflate compression extension will be offered.setCompressionLevel(int compressionLevel) Set the WebSocket deflate compression level.setCompressionRequestServerNoContext(boolean offer) Set whether theserver_no_context_takeoverparameter of the WebSocket per-message deflate compression extension will be offered.setConnectTimeout(int connectTimeout) Set the connect timeoutsetDefaultHost(String defaultHost) Set the default host name to be used by this client in requests if none is provided when making the request.setDefaultPort(int defaultPort) Set the default port to be used by this client in requests if none is provided when making the request.setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols) Sets the list of enabled SSL/TLS protocols.setIdleTimeout(int idleTimeout) Set the idle timeout, default time unit is seconds.setIdleTimeoutUnit(TimeUnit idleTimeoutUnit) Set the idle timeout unit.setKeyCertOptions(KeyCertOptions options) Set the key/cert options.setLocalAddress(String localAddress) Set the local interface to bind for network connections.setLogActivity(boolean logEnabled) Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.setMaxConnections(int maxConnections) Set the max number of WebSockets per endpoint.setMaxFrameSize(int maxFrameSize) Set the max WebSocket frame sizesetMaxMessageSize(int maxMessageSize) Set the max WebSocket message sizesetMetricsName(String metricsName) Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.Set the client name, used when the client is shared, otherwise ignored.setNonProxyHosts(List<String> nonProxyHosts) Set a list of remote hosts that are not proxied when the client is configured to use a proxy.setProxyOptions(ProxyOptions proxyOptions) Set proxy options for connections via CONNECT proxy (e.g.setReadIdleTimeout(int idleTimeout) Set the read idle timeout, default time unit is seconds.setReceiveBufferSize(int receiveBufferSize) Set the TCP receive buffer sizesetReuseAddress(boolean reuseAddress) Set the value of reuse addresssetReusePort(boolean reusePort) Set the value of reuse port.setSendBufferSize(int sendBufferSize) Set the TCP send buffer sizesetSendUnmaskedFrames(boolean sendUnmaskedFrames) Settruewhen the client wants to skip frame masking.setShared(boolean shared) Set totrueto share the client.setSoLinger(int soLinger) Set whether SO_linger keep alive is enabledsetSsl(boolean ssl) Set whether SSL/TLS is enabledsetSslEngineOptions(SSLEngineOptions sslEngineOptions) Set to use SSL engine implementation to use.setSslHandshakeTimeout(long sslHandshakeTimeout) Set the SSL handshake timeout, default time unit is seconds.setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit) Set the SSL handshake timeout unit.setTcpCork(boolean tcpCork) Enable theTCP_CORKoption - only with linux native transport.setTcpFastOpen(boolean tcpFastOpen) Enable theTCP_FASTOPENoption - only with linux native transport.setTcpKeepAlive(boolean tcpKeepAlive) Set whether TCP keep alive is enabledsetTcpNoDelay(boolean tcpNoDelay) Set whether TCP no delay is enabledsetTcpQuickAck(boolean tcpQuickAck) Enable theTCP_QUICKACKoption - only with linux native transport.setTcpUserTimeout(int tcpUserTimeout) Sets theTCP_USER_TIMEOUToption - only with linux native transport.setTrafficClass(int trafficClass) Set the value of traffic classsetTrustAll(boolean trustAll) Set whether all server certificates should be trustedsetTrustOptions(TrustOptions options) Set the trust options.setTryUsePerFrameCompression(boolean offer) Set whether the client will offer the WebSocket per-frame deflate compression extension.setTryUsePerMessageCompression(boolean offer) Set whether the client will offer the WebSocket per-message deflate compression extension.setUseAlpn(boolean useAlpn) Set the ALPN usage.setVerifyHost(boolean verifyHost) Set whether hostname verification is enabledsetWriteIdleTimeout(int idleTimeout) Set the write idle timeout, default time unit is seconds.toJson()Convert to JSONMethods inherited from class ClientOptionsBase
createSSLOptions, getConnectTimeout, getLocalAddress, getMetricsName, getNonProxyHosts, getOrCreateSSLOptions, getProxyOptions, getSslOptions, isTrustAll, removeEnabledSecureTransportProtocolMethods inherited from class TCPSSLOptions
getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getKeyCertOptions, getReadIdleTimeout, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getTcpKeepAliveCount, getTcpKeepAliveIdleSeconds, getTcpKeepAliveIntervalSeconds, getTcpUserTimeout, getTrafficClass, getTransportOptions, getTrustOptions, getWriteIdleTimeout, isReuseAddress, isReusePort, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpn, setTcpKeepAliveCount, setTcpKeepAliveIdleSeconds, setTcpKeepAliveIntervalSecondsMethods inherited from class NetworkOptions
getActivityLogDataFormat, getLogActivity
-
Field Details
-
DEFAULT_MAX_MESSAGE_SIZE
public static final int DEFAULT_MAX_MESSAGE_SIZEThe default value for maximum WebSocket messages (could be assembled from multiple frames) is 4 full frames worth of data- See Also:
-
DEFAULT_MAX_CONNECTIONS
public static final int DEFAULT_MAX_CONNECTIONSThe default value for the maximum number of WebSocket = 50- See Also:
-
DEFAULT_SEND_UNMASKED_FRAMES
public static final boolean DEFAULT_SEND_UNMASKED_FRAMESDefault WebSocket masked bit is true as depicted by RFC =false- See Also:
-
DEFAULT_TRY_USE_PER_FRAME_COMPRESSION
public static final boolean DEFAULT_TRY_USE_PER_FRAME_COMPRESSIONDefault offer WebSocket per-frame deflate compression extension =false- See Also:
-
DEFAULT_TRY_USE_PER_MESSAGE_COMPRESSION
public static final boolean DEFAULT_TRY_USE_PER_MESSAGE_COMPRESSIONDefault offer WebSocket per-message deflate compression extension =false- See Also:
-
DEFAULT_COMPRESSION_LEVEL
public static final int DEFAULT_COMPRESSION_LEVELDefault WebSocket deflate compression level = 6- See Also:
-
DEFAULT_ALLOW_CLIENT_NO_CONTEXT
public static final boolean DEFAULT_ALLOW_CLIENT_NO_CONTEXTDefault offering of theserver_no_context_takeoverWebSocket parameter deflate compression extension =false- See Also:
-
DEFAULT_REQUEST_SERVER_NO_CONTEXT
public static final boolean DEFAULT_REQUEST_SERVER_NO_CONTEXTDefault offering of theclient_no_context_takeoverWebSocket parameter deflate compression extension =false- See Also:
-
DEFAULT_CLOSING_TIMEOUT
public static final int DEFAULT_CLOSING_TIMEOUTDefault WebSocket closing timeout = 10 second- See Also:
-
DEFAULT_MAX_FRAME_SIZE
public static final int DEFAULT_MAX_FRAME_SIZEThe default value for maximum WebSocket frame size = 65536 bytes- See Also:
-
DEFAULT_DEFAULT_HOST
The default value for host name = "localhost"- See Also:
-
DEFAULT_DEFAULT_PORT
public static final int DEFAULT_DEFAULT_PORTThe default value for port = 80- See Also:
-
-
Constructor Details
-
WebSocketClientOptions
public WebSocketClientOptions()Default constructor -
WebSocketClientOptions
Copy constructor- Parameters:
other- the options to copy
-
WebSocketClientOptions
Constructor to create an options from JSON- Parameters:
json- the JSON
-
-
Method Details
-
getDefaultHost
Get the default host name to be used by this client in requests if none is provided when making the request.- Returns:
- the default host name
-
setDefaultHost
Set the default host name to be used by this client in requests if none is provided when making the request.- Returns:
- a reference to this, so the API can be used fluently
-
getDefaultPort
public int getDefaultPort()Get the default port to be used by this client in requests if none is provided when making the request.- Returns:
- the default port
-
setDefaultPort
Set the default port to be used by this client in requests if none is provided when making the request.- Returns:
- a reference to this, so the API can be used fluently
-
isVerifyHost
public boolean isVerifyHost()Is hostname verification (for SSL/TLS) enabled?- Returns:
trueif enabled
-
setVerifyHost
Set whether hostname verification is enabled- Parameters:
verifyHost-trueif enabled- Returns:
- a reference to this, so the API can be used fluently
-
isSendUnmaskedFrames
public boolean isSendUnmaskedFrames()- Returns:
truewhen frame masking is skipped
-
setSendUnmaskedFrames
Settruewhen the client wants to skip frame masking.You may want to set it
trueon server by server WebSocket communication: in this case you are by passing RFC6455 protocol.It's
falseas default.- Parameters:
sendUnmaskedFrames- true if enabled- Returns:
- a reference to this, so the API can be used fluently
-
getMaxFrameSize
public int getMaxFrameSize()Get the maximum WebSocket frame size to use- Returns:
- the max WebSocket frame size
-
setMaxFrameSize
Set the max WebSocket frame size- Parameters:
maxFrameSize- the max frame size, in bytes- Returns:
- a reference to this, so the API can be used fluently
-
getMaxMessageSize
public int getMaxMessageSize()Get the maximum WebSocket message size to use- Returns:
- the max WebSocket message size
-
setMaxMessageSize
Set the max WebSocket message size- Parameters:
maxMessageSize- the max message size, in bytes- Returns:
- a reference to this, so the API can be used fluently
-
getMaxConnections
public int getMaxConnections()Get the maximum of WebSockets per endpoint.- Returns:
- the max number of WebSockets
-
setMaxConnections
Set the max number of WebSockets per endpoint.- Parameters:
maxConnections- the max value- Returns:
- a reference to this, so the API can be used fluently
-
setTryUsePerFrameCompression
Set whether the client will offer the WebSocket per-frame deflate compression extension.- Parameters:
offer-trueto offer the per-frame deflate compression extension- Returns:
- a reference to this, so the API can be used fluently
-
getTryUsePerFrameCompression
public boolean getTryUsePerFrameCompression()- Returns:
truewhen the WebSocket per-frame deflate compression extension will be offered
-
setTryUsePerMessageCompression
Set whether the client will offer the WebSocket per-message deflate compression extension.- Parameters:
offer-trueto offer the per-message deflate compression extension- Returns:
- a reference to this, so the API can be used fluently
-
getTryUsePerMessageCompression
public boolean getTryUsePerMessageCompression()- Returns:
truewhen the WebSocket per-message deflate compression extension will be offered
-
setCompressionLevel
Set the WebSocket deflate compression level.- Parameters:
compressionLevel- the WebSocket deflate compression level- Returns:
- a reference to this, so the API can be used fluently
-
getCompressionLevel
public int getCompressionLevel()- Returns:
- the WebSocket deflate compression level
-
setCompressionAllowClientNoContext
Set whether theclient_no_context_takeoverparameter of the WebSocket per-message deflate compression extension will be offered.- Parameters:
offer-trueto offer theclient_no_context_takeoverparameter- Returns:
- a reference to this, so the API can be used fluently
-
getCompressionAllowClientNoContext
public boolean getCompressionAllowClientNoContext()- Returns:
truewhen theclient_no_context_takeoverparameter for the WebSocket per-message deflate compression extension will be offered
-
setCompressionRequestServerNoContext
Set whether theserver_no_context_takeoverparameter of the WebSocket per-message deflate compression extension will be offered.- Parameters:
offer-trueto offer theserver_no_context_takeoverparameter- Returns:
- a reference to this, so the API can be used fluently
-
getCompressionRequestServerNoContext
public boolean getCompressionRequestServerNoContext()- Returns:
truewhen theserver_no_context_takeoverparameter for the WebSocket per-message deflate compression extension will be offered
-
getClosingTimeout
public int getClosingTimeout()- Returns:
- the amount of time (in seconds) a client WebSocket will wait until it closes TCP connection after receiving a close frame
-
setClosingTimeout
Set the amount of time a client WebSocket will wait until it closes the TCP connection after receiving a close frame.When a WebSocket is closed, the server should close the TCP connection. This timeout will close the TCP connection on the client when it expires.
Set to
0Lcloses the TCP connection immediately after receiving the close frame.Set to a negative value to disable it.
- Parameters:
closingTimeout- the timeout is seconds- Returns:
- a reference to this, so the API can be used fluently
-
getName
- Returns:
- the client name used for sharing
-
setName
Set the client name, used when the client is shared, otherwise ignored.- Parameters:
name- the new name- Returns:
- a reference to this, so the API can be used fluently
-
toJson
Convert to JSON- Overrides:
toJsonin classClientOptionsBase- Returns:
- the JSON
-
setTrustAll
Description copied from class:ClientOptionsBaseSet whether all server certificates should be trusted- Overrides:
setTrustAllin classClientOptionsBase- Parameters:
trustAll- true if all should be trusted- Returns:
- a reference to this, so the API can be used fluently
-
setConnectTimeout
Description copied from class:ClientOptionsBaseSet the connect timeout- Overrides:
setConnectTimeoutin classClientOptionsBase- Parameters:
connectTimeout- connect timeout, in ms- Returns:
- a reference to this, so the API can be used fluently
-
setMetricsName
Description copied from class:ClientOptionsBaseSet the metrics name identifying the reported metrics, useful for grouping metrics with the same name.- Overrides:
setMetricsNamein classClientOptionsBase- Parameters:
metricsName- the metrics name- Returns:
- a reference to this, so the API can be used fluently
-
setProxyOptions
Description copied from class:ClientOptionsBaseSet proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy.- Overrides:
setProxyOptionsin classClientOptionsBase- Parameters:
proxyOptions- proxy options object- Returns:
- a reference to this, so the API can be used fluently
-
setNonProxyHosts
Description copied from class:ClientOptionsBaseSet a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVMnonProxyHostsconfiguration.Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com.
- Overrides:
setNonProxyHostsin classClientOptionsBase- Parameters:
nonProxyHosts- the list of non proxies hosts- Returns:
- a reference to this, so the API can be used fluently
-
setLocalAddress
Description copied from class:ClientOptionsBaseSet the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null.- Overrides:
setLocalAddressin classClientOptionsBase- Parameters:
localAddress- the local address- Returns:
- a reference to this, so the API can be used fluently
-
setLogActivity
Description copied from class:NetworkOptionsSet to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.- Overrides:
setLogActivityin classClientOptionsBase- Parameters:
logEnabled- true for logging the network activity- Returns:
- a reference to this, so the API can be used fluently
-
setActivityLogDataFormat
Description copied from class:NetworkOptionsSet the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.- Overrides:
setActivityLogDataFormatin classClientOptionsBase- Parameters:
activityLogDataFormat- the format to use- Returns:
- a reference to this, so the API can be used fluently
-
setTcpNoDelay
Description copied from class:TCPSSLOptionsSet whether TCP no delay is enabled- Overrides:
setTcpNoDelayin classClientOptionsBase- Parameters:
tcpNoDelay- true if TCP no delay is enabled (Nagle disabled)- Returns:
- a reference to this, so the API can be used fluently
-
setTcpKeepAlive
Description copied from class:TCPSSLOptionsSet whether TCP keep alive is enabled- Overrides:
setTcpKeepAlivein classClientOptionsBase- Parameters:
tcpKeepAlive- true if TCP keep alive is enabled- Returns:
- a reference to this, so the API can be used fluently
-
setSoLinger
Description copied from class:TCPSSLOptionsSet whether SO_linger keep alive is enabled- Overrides:
setSoLingerin classClientOptionsBase- Parameters:
soLinger- true if SO_linger is enabled- Returns:
- a reference to this, so the API can be used fluently
-
setIdleTimeout
Description copied from class:TCPSSLOptionsSet the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, useTCPSSLOptions.setIdleTimeoutUnit(TimeUnit)- Overrides:
setIdleTimeoutin classClientOptionsBase- Parameters:
idleTimeout- the timeout- Returns:
- a reference to this, so the API can be used fluently
-
setReadIdleTimeout
Description copied from class:TCPSSLOptionsSet the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout. If you want change default time unit, useTCPSSLOptions.setIdleTimeoutUnit(TimeUnit)- Overrides:
setReadIdleTimeoutin classClientOptionsBase- Parameters:
idleTimeout- the read timeout- Returns:
- a reference to this, so the API can be used fluently
-
setWriteIdleTimeout
Description copied from class:TCPSSLOptionsSet the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout. If you want change default time unit, useTCPSSLOptions.setIdleTimeoutUnit(TimeUnit)- Overrides:
setWriteIdleTimeoutin classClientOptionsBase- Parameters:
idleTimeout- the write timeout- Returns:
- a reference to this, so the API can be used fluently
-
setIdleTimeoutUnit
Description copied from class:TCPSSLOptionsSet the idle timeout unit. If not specified, default is seconds.- Overrides:
setIdleTimeoutUnitin classClientOptionsBase- Parameters:
idleTimeoutUnit- specify time unit.- Returns:
- a reference to this, so the API can be used fluently
-
setSsl
Description copied from class:TCPSSLOptionsSet whether SSL/TLS is enabled- Overrides:
setSslin classClientOptionsBase- Parameters:
ssl- true if enabled- Returns:
- a reference to this, so the API can be used fluently
-
setKeyCertOptions
Description copied from class:TCPSSLOptionsSet the key/cert options.- Overrides:
setKeyCertOptionsin classClientOptionsBase- Parameters:
options- the key store options- Returns:
- a reference to this, so the API can be used fluently
-
setTrustOptions
Description copied from class:TCPSSLOptionsSet the trust options.- Overrides:
setTrustOptionsin classClientOptionsBase- Parameters:
options- the trust options- Returns:
- a reference to this, so the API can be used fluently
-
setUseAlpn
Description copied from class:TCPSSLOptionsSet the ALPN usage.- Overrides:
setUseAlpnin classClientOptionsBase- Parameters:
useAlpn- true when Application-Layer Protocol Negotiation should be used
-
setSslEngineOptions
Description copied from class:TCPSSLOptionsSet to use SSL engine implementation to use.- Overrides:
setSslEngineOptionsin classClientOptionsBase- Parameters:
sslEngineOptions- the ssl engine to use- Returns:
- a reference to this, so the API can be used fluently
-
setSendBufferSize
Description copied from class:NetworkOptionsSet the TCP send buffer size- Overrides:
setSendBufferSizein classClientOptionsBase- Parameters:
sendBufferSize- the buffers size, in bytes- Returns:
- a reference to this, so the API can be used fluently
-
setReceiveBufferSize
Description copied from class:NetworkOptionsSet the TCP receive buffer size- Overrides:
setReceiveBufferSizein classClientOptionsBase- Parameters:
receiveBufferSize- the buffers size, in bytes- Returns:
- a reference to this, so the API can be used fluently
-
setReuseAddress
Description copied from class:NetworkOptionsSet the value of reuse address- Overrides:
setReuseAddressin classClientOptionsBase- Parameters:
reuseAddress- the value of reuse address- Returns:
- a reference to this, so the API can be used fluently
-
setReusePort
Description copied from class:NetworkOptionsSet the value of reuse port. This is only supported by native transports.- Overrides:
setReusePortin classClientOptionsBase- Parameters:
reusePort- the value of reuse port- Returns:
- a reference to this, so the API can be used fluently
-
setTrafficClass
Description copied from class:NetworkOptionsSet the value of traffic class- Overrides:
setTrafficClassin classClientOptionsBase- Parameters:
trafficClass- the value of traffic class- Returns:
- a reference to this, so the API can be used fluently
-
setTcpFastOpen
Description copied from class:TCPSSLOptionsEnable theTCP_FASTOPENoption - only with linux native transport.- Overrides:
setTcpFastOpenin classClientOptionsBase- Parameters:
tcpFastOpen- the fast open value
-
setTcpCork
Description copied from class:TCPSSLOptionsEnable theTCP_CORKoption - only with linux native transport.- Overrides:
setTcpCorkin classClientOptionsBase- Parameters:
tcpCork- the cork value
-
setTcpQuickAck
Description copied from class:TCPSSLOptionsEnable theTCP_QUICKACKoption - only with linux native transport.- Overrides:
setTcpQuickAckin classClientOptionsBase- Parameters:
tcpQuickAck- the quick ack value
-
setTcpUserTimeout
Description copied from class:TCPSSLOptionsSets theTCP_USER_TIMEOUToption - only with linux native transport.- Overrides:
setTcpUserTimeoutin classClientOptionsBase- Parameters:
tcpUserTimeout- the tcp user timeout value
-
setEnabledSecureTransportProtocols
public WebSocketClientOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols) Description copied from class:TCPSSLOptionsSets the list of enabled SSL/TLS protocols.- Overrides:
setEnabledSecureTransportProtocolsin classTCPSSLOptions- Parameters:
enabledSecureTransportProtocols- the SSL/TLS protocols to enable- Returns:
- a reference to this, so the API can be used fluently
-
setSslHandshakeTimeout
Description copied from class:TCPSSLOptionsSet the SSL handshake timeout, default time unit is seconds.- Overrides:
setSslHandshakeTimeoutin classTCPSSLOptions- Parameters:
sslHandshakeTimeout- the SSL handshake timeout to set, in milliseconds- Returns:
- a reference to this, so the API can be used fluently
-
setSslHandshakeTimeoutUnit
Description copied from class:TCPSSLOptionsSet the SSL handshake timeout unit. If not specified, default is seconds.- Overrides:
setSslHandshakeTimeoutUnitin classTCPSSLOptions- Parameters:
sslHandshakeTimeoutUnit- specify time unit.- Returns:
- a reference to this, so the API can be used fluently
-
addNonProxyHost
Description copied from class:ClientOptionsBaseAdd ahostto theClientOptionsBase.getNonProxyHosts()list.- Overrides:
addNonProxyHostin classClientOptionsBase- Parameters:
host- the added host- Returns:
- a reference to this, so the API can be used fluently
-
addEnabledCipherSuite
Description copied from class:TCPSSLOptionsAdd an enabled cipher suite, appended to the ordered suites.- Overrides:
addEnabledCipherSuitein classClientOptionsBase- Parameters:
suite- the suite- Returns:
- a reference to this, so the API can be used fluently
- See Also:
-
removeEnabledCipherSuite
Description copied from class:TCPSSLOptionsRemoves an enabled cipher suite from the ordered suites.- Overrides:
removeEnabledCipherSuitein classClientOptionsBase- Parameters:
suite- the suite- Returns:
- a reference to this, so the API can be used fluently
-
addCrlPath
Description copied from class:TCPSSLOptionsAdd a CRL path- Overrides:
addCrlPathin classClientOptionsBase- Parameters:
crlPath- the path- Returns:
- a reference to this, so the API can be used fluently
- Throws:
NullPointerException
-
addCrlValue
Description copied from class:TCPSSLOptionsAdd a CRL value- Overrides:
addCrlValuein classClientOptionsBase- Parameters:
crlValue- the value- Returns:
- a reference to this, so the API can be used fluently
- Throws:
NullPointerException
-
addEnabledSecureTransportProtocol
Description copied from class:TCPSSLOptionsAdd an enabled SSL/TLS protocols, appended to the ordered protocols.- Overrides:
addEnabledSecureTransportProtocolin classClientOptionsBase- Parameters:
protocol- the SSL/TLS protocol to enable- Returns:
- a reference to this, so the API can be used fluently
-