| Modifier and Type | Field and Description |
|---|---|
| private int | |
| public static final int | DEFAULT_CONNECT_TIMEOUT
The default value of connect timeout = 60000 ms |
| public static final String | DEFAULT_METRICS_NAME
The default value of the client metrics = "": |
| public static final boolean | DEFAULT_TRUST_ALL
The default value of whether all servers (SSL/TLS) should be trusted = false |
| private String | |
| private String | |
| private List | |
| private ProxyOptions | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ClientOptionsBase(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Create options from some JSON |
| Modifier and Type | Method and Description |
|---|---|
| public ClientOptionsBase | addCrlPath(String
the path crlPath)Overrides io. Add a CRL path |
| public ClientOptionsBase | addCrlValue(Buffer
the value crlValue)Overrides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Add a CRL value |
| public ClientOptionsBase | addEnabledCipherSuite(String
the suite suite)Overrides io. Add an enabled cipher suite, appended to the ordered suites. |
| public ClientOptionsBase | addEnabledSecureTransportProtocol(String
the SSL/TLS protocol to enable protocol)Overrides io. Add an enabled SSL/TLS protocols, appended to the ordered protocols. |
| public ClientOptionsBase | Returns: a reference to this, so the API can be used fluentlythe added host host)Add a |
| public int | |
| public String | |
| public String | |
| public List | |
| public ProxyOptions | |
| private void | |
| public boolean | |
| public ClientOptionsBase | removeEnabledCipherSuite(String
the suite suite)Overrides io. Removes an enabled cipher suite from the ordered suites. |
| public ClientOptionsBase | removeEnabledSecureTransportProtocol(String
the SSL/TLS protocol to disable protocol)Overrides io. Removes an enabled SSL/TLS protocol from the ordered protocols. |
| public ClientOptionsBase | setActivityLogDataFormat(ByteBufFormat
the format to use activityLogDataFormat)Overrides io. Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. |
| public ClientOptionsBase | Returns: a reference to this, so the API can be used fluentlyconnect timeout, in ms connectTimeout)Set the connect timeout |
| public ClientOptionsBase | setIdleTimeout(int
the timeout idleTimeout)Overrides io. Set the idle timeout, default time unit is seconds. |
| public ClientOptionsBase | setIdleTimeoutUnit(TimeUnit
specify time unit. idleTimeoutUnit)Overrides io. Set the idle timeout unit. |
| public ClientOptionsBase | setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
Overrides io.
Deprecated
|
| public ClientOptionsBase | setKeyCertOptions(KeyCertOptions
the key store options options)Overrides io. Set the key/cert options. |
| public ClientOptionsBase | setKeyStoreOptions(JksOptions
the key store in jks format options)Overrides io.
Deprecated
Set the key/cert options in jks format, aka Java keystore. |
| public ClientOptionsBase | Returns: a reference to this, so the API can be used fluentlythe local address localAddress)Set the local interface to bind for network connections. |
| public ClientOptionsBase | setLogActivity(boolean
true for logging the network activity logEnabled)Overrides io. Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. |
| public ClientOptionsBase | Returns: a reference to this, so the API can be used fluentlythe metrics name metricsName)Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name. |
| public ClientOptionsBase | Returns: a reference to this, so the API can be used fluentlythe list of non proxies hosts nonProxyHosts)Set a list of remote hosts that are not proxied when the client is configured to use a proxy. |
| public ClientOptionsBase | setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
Overrides io.
Deprecated
|
| public ClientOptionsBase | setPemKeyCertOptions(PemKeyCertOptions
the options in pem format options)Overrides io.
Deprecated
Set the key/cert store options in pem format. |
| public ClientOptionsBase | setPemTrustOptions(PemTrustOptions
the trust options in pem format options)Overrides io.
Deprecated
Set the trust options in pem format |
| public ClientOptionsBase | setPfxKeyCertOptions(PfxOptions
the key cert options in pfx format options)Overrides io.
Deprecated
Set the key/cert options in pfx format. |
| public ClientOptionsBase | setPfxTrustOptions(PfxOptions
the trust options in pfx format options)Overrides io.
Deprecated
Set the trust options in pfx format |
| public ClientOptionsBase | Returns: a reference to this, so the API can be used fluentlyproxy options object proxyOptions)Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy. |
| public ClientOptionsBase | setReadIdleTimeout(int
the read timeout idleTimeout)Overrides io. Set the read idle timeout, default time unit is seconds. |
| public ClientOptionsBase | setReceiveBufferSize(int
the buffers size, in bytes receiveBufferSize)Overrides io. Set the TCP receive buffer size |
| public ClientOptionsBase | setReuseAddress(boolean
the value of reuse address reuseAddress)Overrides io. Set the value of reuse address |
| public ClientOptionsBase | setReusePort(boolean
the value of reuse port reusePort)Overrides io. Set the value of reuse port. |
| public ClientOptionsBase | setSendBufferSize(int
the buffers size, in bytes sendBufferSize)Overrides io. Set the TCP send buffer size |
| public ClientOptionsBase | setSoLinger(int
true if SO_linger is enabled soLinger)Overrides io. Set whether SO_linger keep alive is enabled |
| public ClientOptionsBase | setSsl(boolean
true if enabled ssl)Overrides io. Set whether SSL/TLS is enabled |
| public ClientOptionsBase | setSslEngineOptions(SSLEngineOptions
the ssl engine to use sslEngineOptions)Overrides io. Set to use SSL engine implementation to use. |
| public ClientOptionsBase | setTcpCork(boolean
the cork value tcpCork)Overrides io. Enable the |
| public ClientOptionsBase | setTcpFastOpen(boolean
the fast open value tcpFastOpen)Overrides io. Enable the |
| public ClientOptionsBase | setTcpKeepAlive(boolean
true if TCP keep alive is enabled tcpKeepAlive)Overrides io. Set whether TCP keep alive is enabled |
| public ClientOptionsBase | setTcpNoDelay(boolean
true if TCP no delay is enabled (Nagle disabled) tcpNoDelay)Overrides io. Set whether TCP no delay is enabled |
| public ClientOptionsBase | setTcpQuickAck(boolean
the quick ack value tcpQuickAck)Overrides io. Enable the |
| public ClientOptionsBase | setTcpUserTimeout(int
the tcp user timeout value tcpUserTimeout)Overrides io. Sets the |
| public ClientOptionsBase | setTrafficClass(int
the value of traffic class trafficClass)Overrides io. Set the value of traffic class |
| public ClientOptionsBase | Returns: a reference to this, so the API can be used fluentlytrue if all should be trusted trustAll)Set whether all server certificates should be trusted |
| public ClientOptionsBase | setTrustOptions(TrustOptions
the trust options options)Overrides io. Set the trust options. |
| public ClientOptionsBase | setTrustStoreOptions(JksOptions
the trust options in jks format options)Overrides io.
Deprecated
Set the trust options in jks format, aka Java truststore |
| public ClientOptionsBase | setUseAlpn(boolean
true when Application-Layer Protocol Negotiation should be used useAlpn)Overrides io. Set the ALPN usage. |
| public ClientOptionsBase | setWriteIdleTimeout(int
the write timeout idleTimeout)Overrides io. Set the write idle timeout, default time unit is seconds. |
| public JsonObject | Returns: the JSONOverrides io.
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Convert to JSON |
| connectTimeout | back to summary |
|---|---|
| private int connectTimeout | |
| DEFAULT_CONNECT_TIMEOUT | back to summary |
|---|---|
| public static final int DEFAULT_CONNECT_TIMEOUT The default value of connect timeout = 60000 ms | |
| DEFAULT_METRICS_NAME | back to summary |
|---|---|
| public static final String DEFAULT_METRICS_NAME The default value of the client metrics = "": | |
| DEFAULT_TRUST_ALL | back to summary |
|---|---|
| public static final boolean DEFAULT_TRUST_ALL The default value of whether all servers (SSL/TLS) should be trusted = false | |
| localAddress | back to summary |
|---|---|
| private String localAddress | |
| metricsName | back to summary |
|---|---|
| private String metricsName | |
| nonProxyHosts | back to summary |
|---|---|
| private List<String> nonProxyHosts | |
| proxyOptions | back to summary |
|---|---|
| private ProxyOptions proxyOptions | |
| trustAll | back to summary |
|---|---|
| private boolean trustAll | |
| ClientOptionsBase | back to summary |
|---|---|
| public ClientOptionsBase() Default constructor | |
| ClientOptionsBase | back to summary |
|---|---|
| public ClientOptionsBase(ClientOptionsBase other) Copy constructor
| |
| ClientOptionsBase | back to summary |
|---|---|
| public ClientOptionsBase(JsonObject json)
References Deprecated
See corresponding docs for further information. Create options from some JSON
| |
| addCrlPath | back to summary |
|---|---|
| public ClientOptionsBase addCrlPath(String crlPath) throws NullPointerException Overrides io. Doc from io. Add a CRL path
| |
| addCrlValue | back to summary |
|---|---|
| public ClientOptionsBase addCrlValue(Buffer crlValue) throws NullPointerException Overrides io. Doc from io. References Deprecated
See corresponding docs for further information. Add a CRL value
| |
| addEnabledCipherSuite | back to summary |
|---|---|
| public ClientOptionsBase addEnabledCipherSuite(String suite) Overrides io. Doc from io. Add an enabled cipher suite, appended to the ordered suites.
| |
| addEnabledSecureTransportProtocol | back to summary |
|---|---|
| public ClientOptionsBase addEnabledSecureTransportProtocol(String protocol) Overrides io. Doc from io. Add an enabled SSL/TLS protocols, appended to the ordered protocols.
| |
| addNonProxyHost | back to summary |
|---|---|
| public ClientOptionsBase addNonProxyHost(String host) Add a
| |
| getConnectTimeout | back to summary |
|---|---|
public int getConnectTimeout()
| |
| getLocalAddress | back to summary |
|---|---|
public String getLocalAddress()
| |
| getMetricsName | back to summary |
|---|---|
public String getMetricsName()
| |
| getNonProxyHosts | back to summary |
|---|---|
| public List | |
| getProxyOptions | back to summary |
|---|---|
| public ProxyOptions getProxyOptions() Get proxy options for connections
| |
| init | back to summary |
|---|---|
| private void init() | |
| isTrustAll | back to summary |
|---|---|
public boolean isTrustAll()
| |
| removeEnabledCipherSuite | back to summary |
|---|---|
| public ClientOptionsBase removeEnabledCipherSuite(String suite) Overrides io. Doc from io. Removes an enabled cipher suite from the ordered suites.
| |
| removeEnabledSecureTransportProtocol | back to summary |
|---|---|
| public ClientOptionsBase removeEnabledSecureTransportProtocol(String protocol) Overrides io. Doc from io. Removes an enabled SSL/TLS protocol from the ordered protocols.
| |
| setActivityLogDataFormat | back to summary |
|---|---|
| public ClientOptionsBase setActivityLogDataFormat(ByteBufFormat activityLogDataFormat) Overrides io. Doc from io. Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.
| |
| setConnectTimeout | back to summary |
|---|---|
| public ClientOptionsBase setConnectTimeout(int connectTimeout) Set the connect timeout
| |
| setIdleTimeout | back to summary |
|---|---|
| public ClientOptionsBase setIdleTimeout(int idleTimeout) Overrides io. Doc from io. Set 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, use
| |
| setIdleTimeoutUnit | back to summary |
|---|---|
| public ClientOptionsBase setIdleTimeoutUnit(TimeUnit idleTimeoutUnit) Overrides io. Doc from io. Set the idle timeout unit. If not specified, default is seconds.
| |
| setJdkSslEngineOptions | back to summary |
|---|---|
| public ClientOptionsBase setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions) Overrides io. Deprecated
| |
| setKeyCertOptions | back to summary |
|---|---|
| public ClientOptionsBase setKeyCertOptions(KeyCertOptions options) Overrides io. Doc from io. Set the key/cert options.
| |
| setKeyStoreOptions | back to summary |
|---|---|
| public ClientOptionsBase setKeyStoreOptions(JksOptions options) Overrides io. Doc from io. Deprecated
Set the key/cert options in jks format, aka Java keystore.
| |
| setLocalAddress | back to summary |
|---|---|
| public ClientOptionsBase setLocalAddress(String localAddress) Set 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.
| |
| setLogActivity | back to summary |
|---|---|
| public ClientOptionsBase setLogActivity(boolean logEnabled) Overrides io. Doc from io. Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
| |
| setMetricsName | back to summary |
|---|---|
| public ClientOptionsBase setMetricsName(String metricsName) Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.
| |
| setNonProxyHosts | back to summary |
|---|---|
| public ClientOptionsBase setNonProxyHosts(List<String> nonProxyHosts) Set 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 JVM Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com.
| |
| setOpenSslEngineOptions | back to summary |
|---|---|
| public ClientOptionsBase setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions) Overrides io. Deprecated
| |
| setPemKeyCertOptions | back to summary |
|---|---|
| public ClientOptionsBase setPemKeyCertOptions(PemKeyCertOptions options) Overrides io. Doc from io. Deprecated
Set the key/cert store options in pem format.
| |
| setPemTrustOptions | back to summary |
|---|---|
| public ClientOptionsBase setPemTrustOptions(PemTrustOptions options) Overrides io. Doc from io. Deprecated
Set the trust options in pem format
| |
| setPfxKeyCertOptions | back to summary |
|---|---|
| public ClientOptionsBase setPfxKeyCertOptions(PfxOptions options) Overrides io. Doc from io. Deprecated
Set the key/cert options in pfx format.
| |
| setPfxTrustOptions | back to summary |
|---|---|
| public ClientOptionsBase setPfxTrustOptions(PfxOptions options) Overrides io. Doc from io. Deprecated
Set the trust options in pfx format
| |
| setProxyOptions | back to summary |
|---|---|
| public ClientOptionsBase setProxyOptions(ProxyOptions proxyOptions) Set proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy.
| |
| setReadIdleTimeout | back to summary |
|---|---|
| public ClientOptionsBase setReadIdleTimeout(int idleTimeout) Overrides io. Doc from io. Set 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, use
| |
| setReceiveBufferSize | back to summary |
|---|---|
| public ClientOptionsBase setReceiveBufferSize(int receiveBufferSize) Overrides io. Doc from io. Set the TCP receive buffer size
| |
| setReuseAddress | back to summary |
|---|---|
| public ClientOptionsBase setReuseAddress(boolean reuseAddress) Overrides io. Doc from io. Set the value of reuse address
| |
| setReusePort | back to summary |
|---|---|
| public ClientOptionsBase setReusePort(boolean reusePort) Overrides io. Doc from io. Set the value of reuse port. This is only supported by native transports.
| |
| setSendBufferSize | back to summary |
|---|---|
| public ClientOptionsBase setSendBufferSize(int sendBufferSize) Overrides io. Doc from io. Set the TCP send buffer size
| |
| setSoLinger | back to summary |
|---|---|
| public ClientOptionsBase setSoLinger(int soLinger) Overrides io. Doc from io. Set whether SO_linger keep alive is enabled
| |
| setSsl | back to summary |
|---|---|
| public ClientOptionsBase setSsl(boolean ssl) Overrides io. Doc from io. Set whether SSL/TLS is enabled
| |
| setSslEngineOptions | back to summary |
|---|---|
| public ClientOptionsBase setSslEngineOptions(SSLEngineOptions sslEngineOptions) Overrides io. Doc from io. Set to use SSL engine implementation to use.
| |
| setTcpCork | back to summary |
|---|---|
| public ClientOptionsBase setTcpCork(boolean tcpCork) Overrides io. Doc from io. Enable the
| |
| setTcpFastOpen | back to summary |
|---|---|
| public ClientOptionsBase setTcpFastOpen(boolean tcpFastOpen) Overrides io. Doc from io. Enable the
| |
| setTcpKeepAlive | back to summary |
|---|---|
| public ClientOptionsBase setTcpKeepAlive(boolean tcpKeepAlive) Overrides io. Doc from io. Set whether TCP keep alive is enabled
| |
| setTcpNoDelay | back to summary |
|---|---|
| public ClientOptionsBase setTcpNoDelay(boolean tcpNoDelay) Overrides io. Doc from io. Set whether TCP no delay is enabled
| |
| setTcpQuickAck | back to summary |
|---|---|
| public ClientOptionsBase setTcpQuickAck(boolean tcpQuickAck) Overrides io. Doc from io. Enable the
| |
| setTcpUserTimeout | back to summary |
|---|---|
| public ClientOptionsBase setTcpUserTimeout(int tcpUserTimeout) Overrides io. Doc from io. Sets the
| |
| setTrafficClass | back to summary |
|---|---|
| public ClientOptionsBase setTrafficClass(int trafficClass) Overrides io. Doc from io. Set the value of traffic class
| |
| setTrustAll | back to summary |
|---|---|
| public ClientOptionsBase setTrustAll(boolean trustAll) Set whether all server certificates should be trusted
| |
| setTrustOptions | back to summary |
|---|---|
| public ClientOptionsBase setTrustOptions(TrustOptions options) Overrides io. Doc from io. Set the trust options.
| |
| setTrustStoreOptions | back to summary |
|---|---|
| public ClientOptionsBase setTrustStoreOptions(JksOptions options) Overrides io. Doc from io. Deprecated
Set the trust options in jks format, aka Java truststore
| |
| setUseAlpn | back to summary |
|---|---|
| public ClientOptionsBase setUseAlpn(boolean useAlpn) Overrides io. Doc from io. Set the ALPN usage.
| |
| setWriteIdleTimeout | back to summary |
|---|---|
| public ClientOptionsBase setWriteIdleTimeout(int idleTimeout) Overrides io. Doc from io. Set 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, use
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson() Overrides io. References Deprecated
See corresponding docs for further information. Convert to JSON
| |