io.vertx.core.net.NetServer .
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private ClientAuth | |
| public static final int | DEFAULT_ACCEPT_BACKLOG
The default accept backlog = 1024 |
| public static final ClientAuth | DEFAULT_CLIENT_AUTH
Default value of whether client auth is required (SSL/TLS) = No |
| public static final String | DEFAULT_HOST
The default host to listen on = "0.0.0.0" (meaning listen on all available interfaces). |
| public static final int | DEFAULT_PORT
The default port to listen on = 0 (meaning a random ephemeral free port will be chosen) |
| public static final long | DEFAULT_PROXY_PROTOCOL_TIMEOUT
The default value of HA PROXY protocol timeout = 10 |
| public static final TimeUnit | DEFAULT_PROXY_PROTOCOL_TIMEOUT_TIME_UNIT
Default HA PROXY protocol time unit = SECONDS |
| public static final boolean | DEFAULT_REGISTER_WRITE_HANDLER
Whether a write-handler should be registered by default = false. |
| public static final boolean | DEFAULT_SNI
Default value of whether the server supports SNI = false |
| public static final boolean | DEFAULT_USE_PROXY_PROTOCOL
Default value of whether the server supports HA PROXY protocol = false |
| private String | |
| private int | |
| private long | |
| private TimeUnit | |
| private boolean | |
| private boolean | |
| private TrafficShapingOptions | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | NetServerOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Create some options from JSON |
| Modifier and Type | Method and Description |
|---|---|
| public NetServerOptions | addCrlPath(String
the path crlPath)Overrides io. Add a CRL path |
| public NetServerOptions | 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 NetServerOptions | addEnabledCipherSuite(String
the suite suite)Overrides io. Add an enabled cipher suite, appended to the ordered suites. |
| public NetServerOptions | addEnabledSecureTransportProtocol(final String
the SSL/TLS protocol to enable protocol)Overrides io. Add an enabled SSL/TLS protocols, appended to the ordered protocols. |
| public int | |
| public ClientAuth | |
| public String | |
| public int | |
| public long | Returns: the Proxy protocol timeout, in time unit specified bygetProxyProtocolTimeoutUnit().
|
| public TimeUnit | |
| public TrafficShapingOptions | |
| private void | |
| public boolean | Returns: true if a write-handler should be registered on the io., otherwise false
|
| public boolean | |
| public boolean | |
| public NetServerOptions | removeEnabledCipherSuite(String
the suite suite)Overrides io. Removes an enabled cipher suite from the ordered suites. |
| public NetServerOptions | removeEnabledSecureTransportProtocol(String
the SSL/TLS protocol to disable protocol)Overrides io. Removes an enabled SSL/TLS protocol from the ordered protocols. |
| public NetServerOptions | Returns: a reference to this, so the API can be used fluentlyaccept backlog acceptBacklog)Set the accept back log |
| public NetServerOptions | 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 NetServerOptions | Returns: a reference to this, so the API can be used fluentlyOne of "NONE, REQUEST, REQUIRED". If it's set to "REQUIRED" then server will require the
SSL cert to be presented otherwise it won't accept the request. If it's set to "REQUEST" then
it won't mandate the certificate to be presented, basically make it optional. clientAuth)Set whether client auth is required |
| public NetServerOptions | setEnabledSecureTransportProtocols(Set<String>
the SSL/TLS protocols to enable enabledSecureTransportProtocols)Overrides io. Sets the list of enabled SSL/TLS protocols. |
| public NetServerOptions | |
| public NetServerOptions | setIdleTimeout(int
the timeout idleTimeout)Overrides io. Set the idle timeout, default time unit is seconds. |
| public NetServerOptions | setIdleTimeoutUnit(TimeUnit
specify time unit. idleTimeoutUnit)Overrides io. Set the idle timeout unit. |
| public NetServerOptions | setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
Overrides io.
Deprecated
|
| public NetServerOptions | setKeyCertOptions(KeyCertOptions
the key store options options)Overrides io. Set the key/cert options. |
| public NetServerOptions | setKeyStoreOptions(JksOptions
the key store in jks format options)Overrides io.
Deprecated
Set the key/cert options in jks format, aka Java keystore. |
| public NetServerOptions | 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 NetServerOptions | setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
Overrides io.
Deprecated
|
| public NetServerOptions | setPemKeyCertOptions(PemKeyCertOptions
the options in pem format options)Overrides io.
Deprecated
Set the key/cert store options in pem format. |
| public NetServerOptions | setPemTrustOptions(PemTrustOptions
the trust options in pem format options)Overrides io.
Deprecated
Set the trust options in pem format |
| public NetServerOptions | setPfxKeyCertOptions(PfxOptions
the key cert options in pfx format options)Overrides io.
Deprecated
Set the key/cert options in pfx format. |
| public NetServerOptions | setPfxTrustOptions(PfxOptions
the trust options in pfx format options)Overrides io.
Deprecated
Set the trust options in pfx format |
| public NetServerOptions | |
| public NetServerOptions | Returns: a reference to this, so the API can be used fluentlythe Proxy protocol timeout to set proxyProtocolTimeout)Set the Proxy protocol timeout, default time unit is seconds. |
| public NetServerOptions | Returns: a reference to this, so the API can be used fluentlyspecify time unit. proxyProtocolTimeoutUnit)Set the Proxy protocol timeout unit. |
| public NetServerOptions | setReadIdleTimeout(int
the read timeout idleTimeout)Overrides io. Set the read idle timeout, default time unit is seconds. |
| public NetServerOptions | setReceiveBufferSize(int
the buffers size, in bytes receiveBufferSize)Overrides io. Set the TCP receive buffer size |
| public NetServerOptions | Returns: a reference to this, so the API can be used fluentlytrue to register a write-handler registerWriteHandler)Whether a write-handler should be registered on the |
| public NetServerOptions | setReuseAddress(boolean
the value of reuse address reuseAddress)Overrides io. Set the value of reuse address |
| public NetServerOptions | setReusePort(boolean
the value of reuse port reusePort)Overrides io. Set the value of reuse port. |
| public NetServerOptions | setSendBufferSize(int
the buffers size, in bytes sendBufferSize)Overrides io. Set the TCP send buffer size |
| public NetServerOptions | Returns: a reference to this, so the API can be used fluentlySet whether the server supports Server Name Indiciation |
| public NetServerOptions | setSoLinger(int
true if SO_linger is enabled soLinger)Overrides io. Set whether SO_linger keep alive is enabled |
| public NetServerOptions | setSsl(boolean
true if enabled ssl)Overrides io. Set whether SSL/TLS is enabled |
| public NetServerOptions | setSslEngineOptions(SSLEngineOptions
the ssl engine to use sslEngineOptions)Overrides io. Set to use SSL engine implementation to use. |
| public NetServerOptions | setSslHandshakeTimeout(long
the SSL handshake timeout to set, in milliseconds sslHandshakeTimeout)Overrides io. Set the SSL handshake timeout, default time unit is seconds. |
| public NetServerOptions | setSslHandshakeTimeoutUnit(TimeUnit
specify time unit. sslHandshakeTimeoutUnit)Overrides io. Set the SSL handshake timeout unit. |
| public NetServerOptions | setTcpCork(boolean
the cork value tcpCork)Overrides io. Enable the |
| public NetServerOptions | setTcpFastOpen(boolean
the fast open value tcpFastOpen)Overrides io. Enable the |
| public NetServerOptions | setTcpKeepAlive(boolean
true if TCP keep alive is enabled tcpKeepAlive)Overrides io. Set whether TCP keep alive is enabled |
| public NetServerOptions | setTcpNoDelay(boolean
true if TCP no delay is enabled (Nagle disabled) tcpNoDelay)Overrides io. Set whether TCP no delay is enabled |
| public NetServerOptions | setTcpQuickAck(boolean
the quick ack value tcpQuickAck)Overrides io. Enable the |
| public NetServerOptions | setTrafficClass(int
the value of traffic class trafficClass)Overrides io. Set the value of traffic class |
| public NetServerOptions | Returns: a reference to this, so the API can be used fluentlyoptions used by traffic handler trafficShapingOptions)Set traffic shaping options. |
| public NetServerOptions | setTrustOptions(TrustOptions
the trust options options)Overrides io. Set the trust options. |
| public NetServerOptions | setTrustStoreOptions(JksOptions
the trust options in jks format options)Overrides io.
Deprecated
Set the trust options in jks format, aka Java truststore |
| public NetServerOptions | setUseAlpn(boolean
true when Application-Layer Protocol Negotiation should be used useAlpn)Overrides io. Set the ALPN usage. |
| public NetServerOptions | Returns: a reference to this, so the API can be used fluentlySet whether the server uses the HA Proxy protocol |
| public NetServerOptions | 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 |