Class HttpTermOptions
java.lang.Object
io.vertx.core.net.NetworkOptions
io.vertx.core.net.TCPSSLOptions
io.vertx.core.net.NetServerOptions
io.vertx.core.http.HttpServerOptions
io.vertx.ext.shell.term.HttpTermOptions
The web term configuration options.
- Author:
- Julien Viet
-
Field Summary
FieldsFields inherited from class HttpServerOptions
DEFAULT_ACCEPT_UNMASKED_FRAMES, DEFAULT_ALPN_VERSIONS, DEFAULT_COMPRESSION_CONTENT_SIZE_THRESHOLD, DEFAULT_COMPRESSION_LEVEL, DEFAULT_COMPRESSION_SUPPORTED, DEFAULT_DECODER_INITIAL_BUFFER_SIZE, DEFAULT_DECOMPRESSION_SUPPORTED, DEFAULT_HANDLE_100_CONTINE_AUTOMATICALLY, DEFAULT_HTTP_2_MULTIPLEX_IMPLEMENTATION, DEFAULT_HTTP2_CLEAR_TEXT_ENABLED, DEFAULT_HTTP2_CONNECTION_WINDOW_SIZE, DEFAULT_HTTP2_MAX_SMALL_CONTINUATION_FRAMES, DEFAULT_HTTP2_RST_FLOOD_MAX_RST_FRAME_PER_WINDOW, DEFAULT_HTTP2_RST_FLOOD_WINDOW_DURATION, DEFAULT_HTTP2_RST_FLOOD_WINDOW_DURATION_TIME_UNIT, DEFAULT_INITIAL_SETTINGS_MAX_CONCURRENT_STREAMS, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_FORM_ATTRIBUTE_SIZE, DEFAULT_MAX_FORM_BUFFERED_SIZE, DEFAULT_MAX_FORM_FIELDS, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_MAX_WEBSOCKET_FRAME_SIZE, DEFAULT_MAX_WEBSOCKET_MESSAGE_SIZE, DEFAULT_METRICS_NAME, DEFAULT_PER_FRAME_WEBSOCKET_COMPRESSION_SUPPORTED, DEFAULT_PER_MESSAGE_WEBSOCKET_COMPRESSION_SUPPORTED, DEFAULT_PORT, DEFAULT_REGISTER_WEBSOCKET_WRITE_HANDLERS, DEFAULT_STRICT_THREAD_MODE_STRICT, DEFAULT_TRACING_POLICY, DEFAULT_WEBSOCKET_ALLOW_SERVER_NO_CONTEXT, DEFAULT_WEBSOCKET_CLOSING_TIMEOUT, DEFAULT_WEBSOCKET_COMPRESSION_LEVEL, DEFAULT_WEBSOCKET_PREFERRED_CLIENT_NO_CONTEXTFields inherited from class NetServerOptions
DEFAULT_ACCEPT_BACKLOG, DEFAULT_HOST, DEFAULT_PROXY_PROTOCOL_TIMEOUT, DEFAULT_PROXY_PROTOCOL_TIMEOUT_TIME_UNIT, DEFAULT_REGISTER_WRITE_HANDLER, DEFAULT_USE_PROXY_PROTOCOLFields 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
Constructors -
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.static Bufferstatic Bufferstatic BuffersetAcceptBacklog(int acceptBacklog) Set the accept back logsetAuthOptions(JsonObject authOptions) Set the auth options.setCharset(String charset) Set the charset used for encoding / decoding text data from/to SockJSsetClientAuth(ClientAuth clientAuth) Set whether client auth is requiredsetCompressionSupported(boolean compressionSupported) Set whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header)setHandle100ContinueAutomatically(boolean handle100ContinueAutomatically) Set whether 100 Continue should be handled automaticallySet the hostsetIdleTimeout(int idleTimeout) Set the idle timeout, default time unit is seconds.setIntputrc(String intputrc) The path of the inputrc config.setPort(int port) Set the portsetReceiveBufferSize(int receiveBufferSize) Set the TCP receive buffer sizesetReuseAddress(boolean reuseAddress) Set the value of reuse addresssetSendBufferSize(int sendBufferSize) Set the TCP send buffer sizesetShellHtmlResource(Buffer shellHtmlResource) Setshell.htmlresource to use.setSockJSHandlerOptions(SockJSHandlerOptions sockJSHandlerOptions) The SockJS handler options.setSockJSPath(String sockJSPath) Configure the SockJS path, the default value is/term/*.setSoLinger(int soLinger) Set whether SO_linger keep alive is enabledsetSsl(boolean ssl) Set whether SSL/TLS is enabledsetTcpKeepAlive(boolean tcpKeepAlive) Set whether TCP keep alive is enabledsetTcpNoDelay(boolean tcpNoDelay) Set whether TCP no delay is enabledsetTermJsResource(Buffer termJsResource) Setterm.jsresource to use.setTrafficClass(int trafficClass) Set the value of traffic classsetVertsShellJsResource(Buffer vertsShellJsResource) Setvertxshell.jsresource to use.Methods inherited from class HttpServerOptions
addCompressor, addEnabledSecureTransportProtocol, addWebSocketSubProtocol, copy, createSSLOptions, getAlpnVersions, getCompression, getCompressionContentSizeThreshold, getCompressionLevel, getCompressors, getDecoderInitialBufferSize, getHttp1Config, getHttp2Config, getHttp2ConnectionWindowSize, getHttp2MaxSmallContinuationFrames, getHttp2MultiplexImplementation, getHttp2RstFloodMaxRstFramePerWindow, getHttp2RstFloodWindowDuration, getHttp2RstFloodWindowDurationTimeUnit, getInitialSettings, getMaxChunkSize, getMaxFormAttributeSize, getMaxFormBufferedBytes, getMaxFormFields, getMaxHeaderSize, getMaxInitialLineLength, getMaxWebSocketFrameSize, getMaxWebSocketMessageSize, getMetricsName, getPerFrameWebSocketCompressionSupported, getPerMessageWebSocketCompressionSupported, getStrictThreadMode, getTracingPolicy, getWebSocketAllowServerNoContext, getWebSocketClosingTimeout, getWebSocketCompressionLevel, getWebSocketConfig, getWebSocketPreferredClientNoContext, getWebSocketSubProtocols, isAcceptUnmaskedFrames, isCompressionSupported, isDecompressionSupported, isFileRegionEnabled, isHandle100ContinueAutomatically, isHttp2ClearTextEnabled, isRegisterWebSocketWriteHandlers, isRegisterWriteHandler, removeEnabledCipherSuite, removeEnabledSecureTransportProtocol, setAcceptUnmaskedFrames, setActivityLogDataFormat, setAlpnVersions, setCompression, setCompressionContentSizeThreshold, setCompressionLevel, setCompressors, setDecoderInitialBufferSize, setDecompressionSupported, setEnabledSecureTransportProtocols, setHttp2ClearTextEnabled, setHttp2ConnectionWindowSize, setHttp2MaxSmallContinuationFrames, setHttp2MultiplexImplementation, setHttp2RstFloodMaxRstFramePerWindow, setHttp2RstFloodWindowDuration, setHttp2RstFloodWindowDurationTimeUnit, setIdleTimeoutUnit, setInitialSettings, setKeyCertOptions, setLogActivity, setMaxChunkSize, setMaxFormAttributeSize, setMaxFormBufferedBytes, setMaxFormFields, setMaxHeaderSize, setMaxInitialLineLength, setMaxWebSocketFrameSize, setMaxWebSocketMessageSize, setMetricsName, setPerFrameWebSocketCompressionSupported, setPerMessageWebSocketCompressionSupported, setProxyProtocolTimeout, setProxyProtocolTimeoutUnit, setReadIdleTimeout, setRegisterWebSocketWriteHandlers, setRegisterWriteHandler, setReusePort, setSni, setSslEngineOptions, setSslHandshakeTimeout, setSslHandshakeTimeoutUnit, setStrictThreadMode, setTcpCork, setTcpFastOpen, setTcpQuickAck, setTcpUserTimeout, setTracingPolicy, setTrafficShapingOptions, setTrustOptions, setUseAlpn, setUseProxyProtocol, setWebSocketAllowServerNoContext, setWebSocketClosingTimeout, setWebSocketCompressionLevel, setWebSocketPreferredClientNoContext, setWebSocketSubProtocols, setWriteIdleTimeout, toJsonMethods inherited from class NetServerOptions
getAcceptBacklog, getClientAuth, getHost, getOrCreateSSLOptions, getPort, getProxyProtocolTimeout, getProxyProtocolTimeoutUnit, getSslOptions, getTrafficShapingOptions, isSni, isUseProxyProtocolMethods 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_CHARSET
-
DEFAULT_INPUTRC
- See Also:
-
-
Constructor Details
-
HttpTermOptions
public HttpTermOptions() -
HttpTermOptions
-
HttpTermOptions
-
-
Method Details
-
defaultVertxShellJsResource
- Returns:
- the
vertxshell.jsdefault resource as a buffer
-
defaultTermJsResource
- Returns:
- the
term.jsdefault resource as a buffer
-
defaultShellHtmlResource
- Returns:
- the
shell.htmldefault resource as a buffer
-
getSockJSHandlerOptions
- Returns:
- the SockJS handler options
-
setSockJSHandlerOptions
The SockJS handler options.- Parameters:
sockJSHandlerOptions- the options to use- Returns:
- a reference to this, so the API can be used fluently
-
getSockJSPath
- Returns:
- the SockJS path
-
setSockJSPath
Configure the SockJS path, the default value is/term/*.- Parameters:
sockJSPath- the new SockJS path- Returns:
- a reference to this, so the API can be used fluently
-
getAuthOptions
- Returns:
- the auth options
-
setAuthOptions
Set the auth options.- Parameters:
authOptions- the auth options- 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 classHttpServerOptions- 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 classHttpServerOptions- 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 classHttpServerOptions- Parameters:
reuseAddress- the value of reuse address- 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 classHttpServerOptions- Parameters:
trafficClass- the value of traffic class- 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 classHttpServerOptions- 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 classHttpServerOptions- 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 classHttpServerOptions- 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 classHttpServerOptions- Parameters:
idleTimeout- the timeout- 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 classHttpServerOptions- Parameters:
ssl- true if enabled- 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 classHttpServerOptions- Parameters:
suite- the suite- Returns:
- a reference to this, so the API can be used fluently
- See Also:
-
addCrlPath
Description copied from class:TCPSSLOptionsAdd a CRL path- Overrides:
addCrlPathin classHttpServerOptions- 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 classHttpServerOptions- Parameters:
crlValue- the value- Returns:
- a reference to this, so the API can be used fluently
- Throws:
NullPointerException
-
setAcceptBacklog
Description copied from class:NetServerOptionsSet the accept back log- Overrides:
setAcceptBacklogin classHttpServerOptions- Parameters:
acceptBacklog- accept backlog- Returns:
- a reference to this, so the API can be used fluently
-
setPort
Description copied from class:NetServerOptionsSet the port- Overrides:
setPortin classHttpServerOptions- Parameters:
port- the port- Returns:
- a reference to this, so the API can be used fluently
-
setHost
Description copied from class:NetServerOptionsSet the host- Overrides:
setHostin classHttpServerOptions- Parameters:
host- the host- Returns:
- a reference to this, so the API can be used fluently
-
setClientAuth
Description copied from class:NetServerOptionsSet whether client auth is required- Overrides:
setClientAuthin classHttpServerOptions- Parameters:
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.- Returns:
- a reference to this, so the API can be used fluently
-
setCompressionSupported
Description copied from class:HttpServerOptionsSet whether the server should support gzip/deflate compression (serving compressed responses to clients advertising support for them with Accept-Encoding header)- Overrides:
setCompressionSupportedin classHttpServerOptions- Parameters:
compressionSupported-trueto enable compression support- Returns:
- a reference to this, so the API can be used fluently
-
setHandle100ContinueAutomatically
Description copied from class:HttpServerOptionsSet whether 100 Continue should be handled automatically- Overrides:
setHandle100ContinueAutomaticallyin classHttpServerOptions- Parameters:
handle100ContinueAutomatically-trueif it should be handled automatically- Returns:
- a reference to this, so the API can be used fluently
-
getVertsShellJsResource
- Returns:
- the
vertxshell.jsresource for this server
-
setVertsShellJsResource
Setvertxshell.jsresource to use.- Parameters:
vertsShellJsResource- the resource- Returns:
- a reference to this, so the API can be used fluently
-
getTermJsResource
- Returns:
- the
term.jsresource for this server
-
setTermJsResource
Setterm.jsresource to use.- Parameters:
termJsResource- the resource- Returns:
- a reference to this, so the API can be used fluently
-
getShellHtmlResource
- Returns:
- the
shell.htmlresource for this server
-
setShellHtmlResource
Setshell.htmlresource to use.- Parameters:
shellHtmlResource- the resource- Returns:
- a reference to this, so the API can be used fluently
-
getCharset
- Returns:
- the charset used for encoding / decoding text from/to SockJS
-
setCharset
Set the charset used for encoding / decoding text data from/to SockJS- Parameters:
charset- the charset to use- Returns:
- a reference to this, so the API can be used fluently
-
getIntputrc
- Returns:
- the current path of the inputrc config
-
setIntputrc
The path of the inputrc config.- Parameters:
intputrc- the path of the inputrc config- Returns:
- a reference to this, so the API can be used fluently
-