public class HttpTermOptions extends HttpServerOptions
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHARSET |
static String |
DEFAULT_INPUTRC |
DEFAULT_ACCEPT_UNMASKED_FRAMES, DEFAULT_ALPN_VERSIONS, DEFAULT_COMPRESSION_LEVEL, DEFAULT_COMPRESSION_SUPPORTED, DEFAULT_DECODER_INITIAL_BUFFER_SIZE, DEFAULT_DECOMPRESSION_SUPPORTED, DEFAULT_HANDLE_100_CONTINE_AUTOMATICALLY, DEFAULT_HTTP2_CONNECTION_WINDOW_SIZE, DEFAULT_INITIAL_SETTINGS_MAX_CONCURRENT_STREAMS, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_FORM_ATTRIBUTE_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_MAX_WEBSOCKET_FRAME_SIZE, DEFAULT_MAX_WEBSOCKET_MESSAGE_SIZE, DEFAULT_PER_FRAME_WEBSOCKET_COMPRESSION_SUPPORTED, DEFAULT_PER_MESSAGE_WEBSOCKET_COMPRESSION_SUPPORTED, DEFAULT_PORT, DEFAULT_WEBSOCKET_ALLOW_SERVER_NO_CONTEXT, DEFAULT_WEBSOCKET_CLOSING_TIMEOUT, DEFAULT_WEBSOCKET_COMPRESSION_LEVEL, DEFAULT_WEBSOCKET_PREFERRED_CLIENT_NO_CONTEXT
DEFAULT_ACCEPT_BACKLOG, DEFAULT_CLIENT_AUTH, DEFAULT_HOST, DEFAULT_SNI
DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_SSL_HANDSHAKE_TIMEOUT, DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_TCP_USER_TIMEOUT, DEFAULT_USE_ALPN, DEFAULT_USE_POOLED_BUFFERS
DEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_REUSE_PORT, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS
Constructor and Description |
---|
HttpTermOptions() |
HttpTermOptions(HttpTermOptions that) |
HttpTermOptions(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
HttpTermOptions |
addCrlPath(String crlPath)
Add a CRL path
|
HttpTermOptions |
addCrlValue(Buffer crlValue)
Add a CRL value
|
HttpTermOptions |
addEnabledCipherSuite(String suite)
Add an enabled cipher suite, appended to the ordered suites.
|
static Buffer |
defaultShellHtmlResource() |
static Buffer |
defaultTermJsResource() |
static Buffer |
defaultVertxShellJsResource() |
AuthOptions |
getAuthOptions() |
String |
getCharset() |
String |
getIntputrc() |
Buffer |
getShellHtmlResource() |
SockJSHandlerOptions |
getSockJSHandlerOptions() |
String |
getSockJSPath() |
Buffer |
getTermJsResource() |
Buffer |
getVertsShellJsResource() |
HttpTermOptions |
setAcceptBacklog(int acceptBacklog)
Set the accept back log
|
HttpTermOptions |
setAuthOptions(AuthOptions authOptions)
Set the auth options.
|
HttpTermOptions |
setCharset(String charset)
Set the charset used for encoding / decoding text data from/to SockJS
|
HttpTermOptions |
setClientAuth(ClientAuth clientAuth)
Set whether client auth is required
|
HttpTermOptions |
setCompressionSupported(boolean compressionSupported)
Set whether the server should support gzip/deflate compression
(serving compressed responses to clients advertising support for them with Accept-Encoding header)
|
HttpTermOptions |
setHandle100ContinueAutomatically(boolean handle100ContinueAutomatically)
Set whether 100 Continue should be handled automatically
|
HttpTermOptions |
setHost(String host)
Set the host
|
HttpTermOptions |
setIdleTimeout(int idleTimeout)
Set the idle timeout, default time unit is seconds.
|
HttpTermOptions |
setIntputrc(String intputrc)
The path of the inputrc config.
|
HttpTermOptions |
setKeyStoreOptions(JksOptions options)
Set the key/cert options in jks format, aka Java keystore.
|
HttpTermOptions |
setPemKeyCertOptions(PemKeyCertOptions options)
Set the key/cert store options in pem format.
|
HttpTermOptions |
setPemTrustOptions(PemTrustOptions options)
Set the trust options in pem format
|
HttpTermOptions |
setPfxKeyCertOptions(PfxOptions options)
Set the key/cert options in pfx format.
|
HttpTermOptions |
setPfxTrustOptions(PfxOptions options)
Set the trust options in pfx format
|
HttpTermOptions |
setPort(int port)
Set the port
|
HttpTermOptions |
setReceiveBufferSize(int receiveBufferSize)
Set the TCP receive buffer size
|
HttpTermOptions |
setReuseAddress(boolean reuseAddress)
Set the value of reuse address
|
HttpTermOptions |
setSendBufferSize(int sendBufferSize)
Set the TCP send buffer size
|
HttpTermOptions |
setShellHtmlResource(Buffer shellHtmlResource)
Set
shell.html resource to use. |
HttpTermOptions |
setSockJSHandlerOptions(SockJSHandlerOptions sockJSHandlerOptions)
The SockJS handler options.
|
HttpTermOptions |
setSockJSPath(String sockJSPath)
Configure the SockJS path, the default value is
/term/* . |
HttpTermOptions |
setSoLinger(int soLinger)
Set whether SO_linger keep alive is enabled
|
HttpTermOptions |
setSsl(boolean ssl)
Set whether SSL/TLS is enabled
|
HttpTermOptions |
setTcpKeepAlive(boolean tcpKeepAlive)
Set whether TCP keep alive is enabled
|
HttpTermOptions |
setTcpNoDelay(boolean tcpNoDelay)
Set whether TCP no delay is enabled
|
HttpTermOptions |
setTermJsResource(Buffer termJsResource)
Set
term.js resource to use. |
HttpTermOptions |
setTrafficClass(int trafficClass)
Set the value of traffic class
|
HttpTermOptions |
setTrustStoreOptions(JksOptions options)
Set the trust options in jks format, aka Java truststore
|
HttpTermOptions |
setUsePooledBuffers(boolean usePooledBuffers)
Set whether Netty pooled buffers are enabled
|
HttpTermOptions |
setVertsShellJsResource(Buffer vertsShellJsResource)
Set
vertxshell.js resource to use. |
addEnabledSecureTransportProtocol, addWebSocketSubProtocol, equals, getAlpnVersions, getCompressionLevel, getDecoderInitialBufferSize, getHttp2ConnectionWindowSize, getInitialSettings, getMaxChunkSize, getMaxFormAttributeSize, getMaxHeaderSize, getMaxInitialLineLength, getMaxWebsocketFrameSize, getMaxWebSocketFrameSize, getMaxWebsocketMessageSize, getMaxWebSocketMessageSize, getPerFrameWebsocketCompressionSupported, getPerFrameWebSocketCompressionSupported, getPerMessageWebsocketCompressionSupported, getPerMessageWebSocketCompressionSupported, getWebsocketAllowServerNoContext, getWebSocketAllowServerNoContext, getWebSocketClosingTimeout, getWebsocketCompressionLevel, getWebSocketCompressionLevel, getWebsocketPreferredClientNoContext, getWebSocketPreferredClientNoContext, getWebsocketSubProtocols, getWebSocketSubProtocols, hashCode, isAcceptUnmaskedFrames, isCompressionSupported, isDecompressionSupported, isHandle100ContinueAutomatically, removeEnabledSecureTransportProtocol, setAcceptUnmaskedFrames, setAlpnVersions, setClientAuthRequired, setCompressionLevel, setDecoderInitialBufferSize, setDecompressionSupported, setEnabledSecureTransportProtocols, setHttp2ConnectionWindowSize, setIdleTimeoutUnit, setInitialSettings, setJdkSslEngineOptions, setKeyCertOptions, setLogActivity, setMaxChunkSize, setMaxFormAttributeSize, setMaxHeaderSize, setMaxInitialLineLength, setMaxWebsocketFrameSize, setMaxWebSocketFrameSize, setMaxWebsocketMessageSize, setMaxWebSocketMessageSize, setOpenSslEngineOptions, setPerFrameWebsocketCompressionSupported, setPerFrameWebSocketCompressionSupported, setPerMessageWebsocketCompressionSupported, setPerMessageWebSocketCompressionSupported, setReusePort, setSni, setSslEngineOptions, setSslHandshakeTimeout, setSslHandshakeTimeoutUnit, setTcpCork, setTcpFastOpen, setTcpQuickAck, setTrustOptions, setUseAlpn, setWebsocketAllowServerNoContext, setWebSocketAllowServerNoContext, setWebSocketClosingTimeout, setWebsocketCompressionLevel, setWebSocketCompressionLevel, setWebsocketPreferredClientNoContext, setWebSocketPreferredClientNoContext, setWebSocketSubProtocols, setWebsocketSubProtocols, toJson
getAcceptBacklog, getClientAuth, getHost, getPort, isClientAuthRequired, isSni
getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getTcpUserTimeout, getTrustOptions, getTrustStoreOptions, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpn, isUsePooledBuffers, setTcpUserTimeout
getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePort
public static final String DEFAULT_CHARSET
public static final String DEFAULT_INPUTRC
public HttpTermOptions()
public HttpTermOptions(JsonObject json)
public HttpTermOptions(HttpTermOptions that)
public static Buffer defaultVertxShellJsResource()
vertxshell.js
default resource as a bufferpublic static Buffer defaultTermJsResource()
term.js
default resource as a bufferpublic static Buffer defaultShellHtmlResource()
shell.html
default resource as a bufferpublic SockJSHandlerOptions getSockJSHandlerOptions()
public HttpTermOptions setSockJSHandlerOptions(SockJSHandlerOptions sockJSHandlerOptions)
sockJSHandlerOptions
- the options to usepublic String getSockJSPath()
public HttpTermOptions setSockJSPath(String sockJSPath)
/term/*
.sockJSPath
- the new SockJS pathpublic AuthOptions getAuthOptions()
public HttpTermOptions setAuthOptions(AuthOptions authOptions)
authOptions
- the auth optionspublic HttpTermOptions setSendBufferSize(int sendBufferSize)
NetworkOptions
setSendBufferSize
in class HttpServerOptions
sendBufferSize
- the buffers size, in bytespublic HttpTermOptions setReceiveBufferSize(int receiveBufferSize)
NetworkOptions
setReceiveBufferSize
in class HttpServerOptions
receiveBufferSize
- the buffers size, in bytespublic HttpTermOptions setReuseAddress(boolean reuseAddress)
NetworkOptions
setReuseAddress
in class HttpServerOptions
reuseAddress
- the value of reuse addresspublic HttpTermOptions setTrafficClass(int trafficClass)
NetworkOptions
setTrafficClass
in class HttpServerOptions
trafficClass
- the value of traffic classpublic HttpTermOptions setTcpNoDelay(boolean tcpNoDelay)
TCPSSLOptions
setTcpNoDelay
in class HttpServerOptions
tcpNoDelay
- true if TCP no delay is enabled (Nagle disabled)public HttpTermOptions setTcpKeepAlive(boolean tcpKeepAlive)
TCPSSLOptions
setTcpKeepAlive
in class HttpServerOptions
tcpKeepAlive
- true if TCP keep alive is enabledpublic HttpTermOptions setSoLinger(int soLinger)
TCPSSLOptions
setSoLinger
in class HttpServerOptions
soLinger
- true if SO_linger is enabledpublic HttpTermOptions setUsePooledBuffers(boolean usePooledBuffers)
TCPSSLOptions
setUsePooledBuffers
in class HttpServerOptions
usePooledBuffers
- true if pooled buffers enabledpublic HttpTermOptions setIdleTimeout(int idleTimeout)
TCPSSLOptions
TCPSSLOptions.setIdleTimeoutUnit(TimeUnit)
setIdleTimeout
in class HttpServerOptions
idleTimeout
- the timeout, in secondspublic HttpTermOptions setSsl(boolean ssl)
TCPSSLOptions
setSsl
in class HttpServerOptions
ssl
- true if enabledpublic HttpTermOptions setKeyStoreOptions(JksOptions options)
TCPSSLOptions
setKeyStoreOptions
in class HttpServerOptions
options
- the key store in jks formatpublic HttpTermOptions setPfxKeyCertOptions(PfxOptions options)
TCPSSLOptions
setPfxKeyCertOptions
in class HttpServerOptions
options
- the key cert options in pfx formatpublic HttpTermOptions setPemKeyCertOptions(PemKeyCertOptions options)
TCPSSLOptions
setPemKeyCertOptions
in class HttpServerOptions
options
- the options in pem formatpublic HttpTermOptions setTrustStoreOptions(JksOptions options)
TCPSSLOptions
setTrustStoreOptions
in class HttpServerOptions
options
- the trust options in jks formatpublic HttpTermOptions setPemTrustOptions(PemTrustOptions options)
TCPSSLOptions
setPemTrustOptions
in class HttpServerOptions
options
- the trust options in pem formatpublic HttpTermOptions setPfxTrustOptions(PfxOptions options)
TCPSSLOptions
setPfxTrustOptions
in class HttpServerOptions
options
- the trust options in pfx formatpublic HttpTermOptions addEnabledCipherSuite(String suite)
TCPSSLOptions
addEnabledCipherSuite
in class HttpServerOptions
suite
- the suitepublic HttpTermOptions addCrlPath(String crlPath) throws NullPointerException
TCPSSLOptions
addCrlPath
in class HttpServerOptions
crlPath
- the pathNullPointerException
public HttpTermOptions addCrlValue(Buffer crlValue) throws NullPointerException
TCPSSLOptions
addCrlValue
in class HttpServerOptions
crlValue
- the valueNullPointerException
public HttpTermOptions setAcceptBacklog(int acceptBacklog)
NetServerOptions
setAcceptBacklog
in class HttpServerOptions
acceptBacklog
- accept backlogpublic HttpTermOptions setPort(int port)
NetServerOptions
setPort
in class HttpServerOptions
port
- the portpublic HttpTermOptions setHost(String host)
NetServerOptions
setHost
in class HttpServerOptions
host
- the hostpublic HttpTermOptions setClientAuth(ClientAuth clientAuth)
NetServerOptions
setClientAuth
in class HttpServerOptions
clientAuth
- One 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.public HttpTermOptions setCompressionSupported(boolean compressionSupported)
HttpServerOptions
setCompressionSupported
in class HttpServerOptions
compressionSupported
- true
to enable compression supportpublic HttpTermOptions setHandle100ContinueAutomatically(boolean handle100ContinueAutomatically)
HttpServerOptions
setHandle100ContinueAutomatically
in class HttpServerOptions
handle100ContinueAutomatically
- true
if it should be handled automaticallypublic Buffer getVertsShellJsResource()
vertxshell.js
resource for this serverpublic HttpTermOptions setVertsShellJsResource(Buffer vertsShellJsResource)
vertxshell.js
resource to use.vertsShellJsResource
- the resourcepublic Buffer getTermJsResource()
term.js
resource for this serverpublic HttpTermOptions setTermJsResource(Buffer termJsResource)
term.js
resource to use.termJsResource
- the resourcepublic Buffer getShellHtmlResource()
shell.html
resource for this serverpublic HttpTermOptions setShellHtmlResource(Buffer shellHtmlResource)
shell.html
resource to use.shellHtmlResource
- the resourcepublic String getCharset()
public HttpTermOptions setCharset(String charset)
charset
- the charset to usepublic String getIntputrc()
public HttpTermOptions setIntputrc(String intputrc)
intputrc
- the path of the inputrc configCopyright © 2023 Eclipse. All rights reserved.