@ConfigurationProperties(prefix="vertx.http.server") public class HttpServerProperties extends Object
If sslEngineOptions, crlPath or crlValues are required, please use HttpServerOptionsCustomizer.
If keyCertOptions or trustOptions either use HttpServerOptionsCustomizer or ServerProperties.
| Constructor and Description |
|---|
HttpServerProperties() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAcceptBacklog() |
List<io.vertx.core.http.HttpVersion> |
getAlpnVersions() |
io.vertx.core.http.ClientAuth |
getClientAuth()
One of "NONE, REQUEST, REQUIRED".
|
int |
getCompressionLevel() |
int |
getDecoderInitialBufferSize() |
Set<String> |
getEnabledCipherSuites() |
Set<String> |
getEnabledSecureTransportProtocols()
Returns the enabled SSL/TLS protocols
|
long |
getHeaderTableSize() |
String |
getHost() |
int |
getHttp2ConnectionWindowSize() |
Map<Integer,Long> |
getHttp2ExtraSettings() |
io.vertx.core.http.HttpServerOptions |
getHttpServerOptions() |
int |
getIdleTimeout() |
TimeUnit |
getIdleTimeoutUnit() |
int |
getInitialWindowSize() |
boolean |
getLogActivity() |
int |
getMaxChunkSize() |
long |
getMaxConcurrentStreams() |
int |
getMaxFrameSize() |
long |
getMaxHeaderListSize() |
int |
getMaxHeaderSize() |
int |
getMaxInitialLineLength() |
int |
getMaxWebsocketFrameSize() |
int |
getMaxWebsocketMessageSize() |
int |
getPort() |
int |
getReceiveBufferSize()
Return the TCP receive buffer size, in bytes
|
int |
getSendBufferSize()
Return the TCP send buffer size, in bytes.
|
int |
getSoLinger() |
int |
getTrafficClass() |
int |
getWebsocketCompressionLevel() |
String |
getWebsocketSubProtocols() |
boolean |
isAcceptUnmaskedFrames() |
boolean |
isCompressionSupported() |
boolean |
isDecompressionSupported() |
boolean |
isHandle100ContinueAutomatically() |
boolean |
isPerFrameWebsocketCompressionSupported()
Get whether WebSocket the per-frame deflate compression extension is supported.
|
boolean |
isPerMessageWebsocketCompressionSupported()
Get whether WebSocket per-message deflate compression extension is supported.
|
boolean |
isPushEnabled() |
boolean |
isReuseAddress() |
boolean |
isReusePort() |
boolean |
isSni() |
boolean |
isSsl() |
boolean |
isTcpCork() |
boolean |
isTcpFastOpen() |
boolean |
isTcpKeepAlive() |
boolean |
isTcpNoDelay() |
boolean |
isTcpQuickAck() |
boolean |
isUseAlpn() |
boolean |
isWebsocketAllowServerNoContext() |
boolean |
isWebsocketPreferredClientNoContext() |
void |
setAcceptBacklog(int acceptBacklog) |
void |
setAcceptUnmaskedFrames(boolean acceptUnmaskedFrames) |
void |
setAlpnVersions(List<io.vertx.core.http.HttpVersion> alpnVersions) |
void |
setClientAuth(io.vertx.core.http.ClientAuth clientAuth) |
void |
setCompressionLevel(int compressionLevel) |
void |
setCompressionSupported(boolean compressionSupported) |
void |
setDecoderInitialBufferSize(int decoderInitialBufferSize) |
void |
setDecompressionSupported(boolean decompressionSupported) |
void |
setEnabledCipherSuites(Set<String> enabledCipherSuites) |
void |
setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols) |
void |
setHandle100ContinueAutomatically(boolean handle100ContinueAutomatically) |
void |
setHeaderTableSize(long headerTableSize) |
void |
setHost(String host) |
void |
setHttp2ConnectionWindowSize(int http2ConnectionWindowSize) |
void |
setHttp2ExtraSettings(Map<Integer,Long> http2ExtraSettings) |
void |
setIdleTimeout(int idleTimeout) |
void |
setIdleTimeoutUnit(TimeUnit idleTimeoutUnit) |
void |
setInitialWindowSize(int initialWindowSize) |
void |
setLogActivity(boolean logActivity) |
void |
setMaxChunkSize(int maxChunkSize) |
void |
setMaxConcurrentStreams(long maxConcurrentStreams) |
void |
setMaxFrameSize(int maxFrameSize) |
void |
setMaxHeaderListSize(long maxHeaderListSize) |
void |
setMaxHeaderSize(int maxHeaderSize) |
void |
setMaxInitialLineLength(int maxInitialLineLength) |
void |
setMaxWebsocketFrameSize(int maxWebsocketFrameSize) |
void |
setMaxWebsocketMessageSize(int maxWebsocketMessageSize) |
void |
setPerFrameWebsocketCompressionSupported(boolean perFrameWebsocketCompressionSupported) |
void |
setPerMessageWebsocketCompressionSupported(boolean perMessageWebsocketCompressionSupported) |
void |
setPort(int port) |
void |
setPushEnabled(boolean pushEnabled) |
void |
setReceiveBufferSize(int receiveBufferSize) |
void |
setReuseAddress(boolean reuseAddress) |
void |
setReusePort(boolean reusePort) |
void |
setSendBufferSize(int sendBufferSize) |
void |
setSni(boolean sni) |
void |
setSoLinger(int soLinger) |
void |
setSsl(boolean ssl) |
void |
setTcpCork(boolean tcpCork) |
void |
setTcpFastOpen(boolean tcpFastOpen) |
void |
setTcpKeepAlive(boolean tcpKeepAlive) |
void |
setTcpNoDelay(boolean tcpNoDelay) |
void |
setTcpQuickAck(boolean tcpQuickAck) |
void |
setTrafficClass(int trafficClass) |
void |
setUseAlpn(boolean useAlpn) |
void |
setWebsocketAllowServerNoContext(boolean allowServerNoContext) |
void |
setWebsocketCompressionLevel(int websocketCompressionLevel) |
void |
setWebsocketPreferredClientNoContext(boolean preferredClientNoContext) |
void |
setWebsocketSubProtocols(String subProtocols) |
public io.vertx.core.http.HttpServerOptions getHttpServerOptions()
public int getPort()
getPort()public void setPort(int port)
public void setHost(String host)
public int getAcceptBacklog()
getAcceptBacklog()public void setAcceptBacklog(int acceptBacklog)
public io.vertx.core.http.ClientAuth getClientAuth()
getClientAuth()public void setClientAuth(io.vertx.core.http.ClientAuth clientAuth)
public boolean isSni()
isSni()public void setSni(boolean sni)
public boolean isCompressionSupported()
true if the server supports gzip/deflate compressionisCompressionSupported()public void setCompressionSupported(boolean compressionSupported)
public int getCompressionLevel()
getCompressionLevel()public void setCompressionLevel(int compressionLevel)
public boolean isAcceptUnmaskedFrames()
isAcceptUnmaskedFrames()public void setAcceptUnmaskedFrames(boolean acceptUnmaskedFrames)
public int getMaxWebsocketFrameSize()
getMaxWebsocketFrameSize()public void setMaxWebsocketFrameSize(int maxWebsocketFrameSize)
public int getMaxWebsocketMessageSize()
getMaxWebsocketMessageSize()public void setMaxWebsocketMessageSize(int maxWebsocketMessageSize)
public String getWebsocketSubProtocols()
getWebsocketSubProtocols()public void setWebsocketSubProtocols(String subProtocols)
public boolean isHandle100ContinueAutomatically()
isHandle100ContinueAutomatically()public void setHandle100ContinueAutomatically(boolean handle100ContinueAutomatically)
public int getMaxChunkSize()
getMaxChunkSize()public void setMaxChunkSize(int maxChunkSize)
public int getMaxInitialLineLength()
"GET / HTTP/1.0")getMaxInitialLineLength()public void setMaxInitialLineLength(int maxInitialLineLength)
public int getMaxHeaderSize()
getMaxHeaderSize()public void setMaxHeaderSize(int maxHeaderSize)
public List<io.vertx.core.http.HttpVersion> getAlpnVersions()
getAlpnVersions()public void setAlpnVersions(List<io.vertx.core.http.HttpVersion> alpnVersions)
public int getHttp2ConnectionWindowSize()
getHttp2ConnectionWindowSize()public void setHttp2ConnectionWindowSize(int http2ConnectionWindowSize)
public boolean isDecompressionSupported()
true if the server supports decompressionisDecompressionSupported()public void setDecompressionSupported(boolean decompressionSupported)
public int getDecoderInitialBufferSize()
getDecoderInitialBufferSize()public void setDecoderInitialBufferSize(int decoderInitialBufferSize)
public boolean isPerFrameWebsocketCompressionSupported()
true if the http server will accept the per-frame deflate compression extensionisPerFrameWebsocketCompressionSupported()public void setPerFrameWebsocketCompressionSupported(boolean perFrameWebsocketCompressionSupported)
public boolean isPerMessageWebsocketCompressionSupported()
true if the http server will accept the per-message deflate compression extensionisPerMessageWebsocketCompressionSupported()public void setPerMessageWebsocketCompressionSupported(boolean perMessageWebsocketCompressionSupported)
public int getWebsocketCompressionLevel()
getWebsocketCompressionLevel()public void setWebsocketCompressionLevel(int websocketCompressionLevel)
public boolean isWebsocketAllowServerNoContext()
true when the WebSocket server will accept the server_no_context_takeover parameter for the per-message
deflate compression extension offered by the clientisWebsocketAllowServerNoContext()public void setWebsocketAllowServerNoContext(boolean allowServerNoContext)
public boolean isWebsocketPreferredClientNoContext()
true when the WebSocket server will accept the client_no_context_takeover parameter for the per-message
deflate compression extension offered by the clientisWebsocketPreferredClientNoContext()public void setWebsocketPreferredClientNoContext(boolean preferredClientNoContext)
public long getHeaderTableSize()
Http2Settings.getHeaderTableSize()public void setHeaderTableSize(long headerTableSize)
public boolean isPushEnabled()
Http2Settings.isPushEnabled()public void setPushEnabled(boolean pushEnabled)
public long getMaxConcurrentStreams()
Http2Settings.getMaxConcurrentStreams()public void setMaxConcurrentStreams(long maxConcurrentStreams)
public int getInitialWindowSize()
Http2Settings.getInitialWindowSize()public void setInitialWindowSize(int initialWindowSize)
public int getMaxFrameSize()
Http2Settings.getMaxFrameSize()public void setMaxFrameSize(int maxFrameSize)
public long getMaxHeaderListSize()
Http2Settings.getMaxHeaderListSize()public void setMaxHeaderListSize(long maxHeaderListSize)
public Map<Integer,Long> getHttp2ExtraSettings()
Http2Settings.getExtraSettings()public boolean isTcpNoDelay()
isTcpNoDelay()public void setTcpNoDelay(boolean tcpNoDelay)
public boolean isTcpKeepAlive()
isTcpKeepAlive()public void setTcpKeepAlive(boolean tcpKeepAlive)
public int getSoLinger()
getSoLinger()public void setSoLinger(int soLinger)
public int getIdleTimeout()
getIdleTimeoutUnit().getIdleTimeout()public void setIdleTimeout(int idleTimeout)
public TimeUnit getIdleTimeoutUnit()
getIdleTimeoutUnit()public void setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
public boolean isSsl()
isSsl()public void setSsl(boolean ssl)
public Set<String> getEnabledCipherSuites()
getEnabledCipherSuites()public boolean isUseAlpn()
isUseAlpn()public void setUseAlpn(boolean useAlpn)
public Set<String> getEnabledSecureTransportProtocols()
getEnabledSecureTransportProtocols()public void setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
public boolean isTcpFastOpen()
TCP_FASTOPEN option is enabledisTcpFastOpen()public void setTcpFastOpen(boolean tcpFastOpen)
public boolean isTcpCork()
TCP_CORK option is enabledisTcpCork()public void setTcpCork(boolean tcpCork)
public boolean isTcpQuickAck()
TCP_QUICKACK option is enabledisTcpQuickAck()public void setTcpQuickAck(boolean tcpQuickAck)
public int getSendBufferSize()
getSendBufferSize()public void setSendBufferSize(int sendBufferSize)
public int getReceiveBufferSize()
getReceiveBufferSize()public void setReceiveBufferSize(int receiveBufferSize)
public int getTrafficClass()
getTrafficClass()public void setTrafficClass(int trafficClass)
public boolean isReuseAddress()
isReuseAddress()public void setReuseAddress(boolean reuseAddress)
public boolean getLogActivity()
getLogActivity()public void setLogActivity(boolean logActivity)
public boolean isReusePort()
isReusePort()public void setReusePort(boolean reusePort)
Copyright © 2020. All rights reserved.