Class NettyHttpServerConfiguration.Http2Settings
java.lang.Object
io.micronaut.http.server.netty.configuration.NettyHttpServerConfiguration.Http2Settings
- Enclosing class:
- NettyHttpServerConfiguration
@ConfigurationProperties("http2")
public static class NettyHttpServerConfiguration.Http2Settings
extends Object
Http2 settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets theSETTINGS_HEADER_TABLE_SIZE
value.Gets theSETTINGS_INITIAL_WINDOW_SIZE
value.Gets theSETTINGS_MAX_CONCURRENT_STREAMS
value.Gets theSETTINGS_MAX_FRAME_SIZE
value.Gets theSETTINGS_MAX_HEADER_LIST_SIZE
value.Deprecated.io.netty.handler.codec.http2.Http2Settings
Returns netty's http2 settings.void
setHeaderTableSize
(Long value) Sets theSETTINGS_HEADER_TABLE_SIZE
value.void
setInitialWindowSize
(Integer value) Sets theSETTINGS_INITIAL_WINDOW_SIZE
value.void
setMaxConcurrentStreams
(Long value) Sets theSETTINGS_MAX_CONCURRENT_STREAMS
value.void
setMaxFrameSize
(Integer value) Sets theSETTINGS_MAX_FRAME_SIZE
value.void
setMaxHeaderListSize
(Long value) Sets theSETTINGS_MAX_HEADER_LIST_SIZE
value.void
setPushEnabled
(Boolean enabled) Deprecated.TheSETTINGS_ENABLE_PUSH
setting makes no sense when sent by the server, and clients must reject any setting exceptfalse
(the default) according to the spec.
-
Constructor Details
-
Http2Settings
public Http2Settings()
-
-
Method Details
-
http2Settings
public io.netty.handler.codec.http2.Http2Settings http2Settings()Returns netty's http2 settings.- Returns:
- io.netty.handler.codec.http2.Http2Settings.
-
getHeaderTableSize
Gets theSETTINGS_HEADER_TABLE_SIZE
value. If unavailable, returnsnull
.- Returns:
- The header table size or
null
.
-
setHeaderTableSize
Sets theSETTINGS_HEADER_TABLE_SIZE
value.- Parameters:
value
- The header table size.- Throws:
IllegalArgumentException
- if verification of the setting fails.
-
getPushEnabled
Deprecated.TheSETTINGS_ENABLE_PUSH
setting makes no sense when sent by the server, and clients must reject any setting exceptfalse
(the default) according to the spec.Gets theSETTINGS_ENABLE_PUSH
value. If unavailable, returnsnull
.- Returns:
- The
SETTINGS_ENABLE_PUSH
value. If unavailable, returnsnull
.
-
setPushEnabled
Deprecated.TheSETTINGS_ENABLE_PUSH
setting makes no sense when sent by the server, and clients must reject any setting exceptfalse
(the default) according to the spec. Netty will refuse to write this setting altogether. To prevent this, this setter now does nothing and will be removed in a future release.Does nothing.- Parameters:
enabled
- TheSETTINGS_ENABLE_PUSH
value.
-
getMaxConcurrentStreams
Gets theSETTINGS_MAX_CONCURRENT_STREAMS
value. If unavailable, returnsnull
.- Returns:
- The
SETTINGS_MAX_CONCURRENT_STREAMS
value. If unavailable, returnsnull
.
-
setMaxConcurrentStreams
Sets theSETTINGS_MAX_CONCURRENT_STREAMS
value.- Parameters:
value
- TheSETTINGS_MAX_CONCURRENT_STREAMS
value.- Throws:
IllegalArgumentException
- if verification of the setting fails.
-
getInitialWindowSize
Gets theSETTINGS_INITIAL_WINDOW_SIZE
value. If unavailable, returnsnull
.- Returns:
- The
SETTINGS_INITIAL_WINDOW_SIZE
value. If unavailable, returnsnull
.
-
setInitialWindowSize
Sets theSETTINGS_INITIAL_WINDOW_SIZE
value.- Parameters:
value
- TheSETTINGS_INITIAL_WINDOW_SIZE
value.- Throws:
IllegalArgumentException
- if verification of the setting fails.
-
getMaxFrameSize
Gets theSETTINGS_MAX_FRAME_SIZE
value. If unavailable, returnsnull
.- Returns:
- The
SETTINGS_MAX_FRAME_SIZE
value. If unavailable, returnsnull
.
-
setMaxFrameSize
Sets theSETTINGS_MAX_FRAME_SIZE
value.- Parameters:
value
- TheSETTINGS_MAX_FRAME_SIZE
value.- Throws:
IllegalArgumentException
- if verification of the setting fails.
-
getMaxHeaderListSize
Gets theSETTINGS_MAX_HEADER_LIST_SIZE
value. If unavailable, returnsnull
.- Returns:
- The
SETTINGS_MAX_HEADER_LIST_SIZE
value. If unavailable, returnsnull
.
-
setMaxHeaderListSize
Sets theSETTINGS_MAX_HEADER_LIST_SIZE
value.- Parameters:
value
- TheSETTINGS_MAX_HEADER_LIST_SIZE
value.- Throws:
IllegalArgumentException
- if verification of the setting fails.
-
SETTINGS_ENABLE_PUSH
setting makes no sense when sent by the server, and clients must reject any setting exceptfalse
(the default) according to the spec.