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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theSETTINGS_HEADER_TABLE_SIZEvalue.Gets theSETTINGS_INITIAL_WINDOW_SIZEvalue.Gets theSETTINGS_MAX_CONCURRENT_STREAMSvalue.Gets theSETTINGS_MAX_FRAME_SIZEvalue.Gets theSETTINGS_MAX_HEADER_LIST_SIZEvalue.Deprecated.io.netty.handler.codec.http2.Http2SettingsReturns netty's http2 settings.voidsetHeaderTableSize(Long value) Sets theSETTINGS_HEADER_TABLE_SIZEvalue.voidsetInitialWindowSize(Integer value) Sets theSETTINGS_INITIAL_WINDOW_SIZEvalue.voidsetMaxConcurrentStreams(Long value) Sets theSETTINGS_MAX_CONCURRENT_STREAMSvalue.voidsetMaxFrameSize(Integer value) Sets theSETTINGS_MAX_FRAME_SIZEvalue.voidsetMaxHeaderListSize(Long value) Sets theSETTINGS_MAX_HEADER_LIST_SIZEvalue.voidsetPushEnabled(Boolean enabled) Deprecated.TheSETTINGS_ENABLE_PUSHsetting 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_SIZEvalue. If unavailable, returnsnull.- Returns:
- The header table size or
null.
-
setHeaderTableSize
Sets theSETTINGS_HEADER_TABLE_SIZEvalue.- Parameters:
value- The header table size.- Throws:
IllegalArgumentException- if verification of the setting fails.
-
getPushEnabled
Deprecated.TheSETTINGS_ENABLE_PUSHsetting makes no sense when sent by the server, and clients must reject any setting exceptfalse(the default) according to the spec.Gets theSETTINGS_ENABLE_PUSHvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_ENABLE_PUSHvalue. If unavailable, returnsnull.
-
setPushEnabled
Deprecated.TheSETTINGS_ENABLE_PUSHsetting 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_PUSHvalue.
-
getMaxConcurrentStreams
Gets theSETTINGS_MAX_CONCURRENT_STREAMSvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_MAX_CONCURRENT_STREAMSvalue. If unavailable, returnsnull.
-
setMaxConcurrentStreams
Sets theSETTINGS_MAX_CONCURRENT_STREAMSvalue.- Parameters:
value- TheSETTINGS_MAX_CONCURRENT_STREAMSvalue.- Throws:
IllegalArgumentException- if verification of the setting fails.
-
getInitialWindowSize
Gets theSETTINGS_INITIAL_WINDOW_SIZEvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_INITIAL_WINDOW_SIZEvalue. If unavailable, returnsnull.
-
setInitialWindowSize
Sets theSETTINGS_INITIAL_WINDOW_SIZEvalue.- Parameters:
value- TheSETTINGS_INITIAL_WINDOW_SIZEvalue.- Throws:
IllegalArgumentException- if verification of the setting fails.
-
getMaxFrameSize
Gets theSETTINGS_MAX_FRAME_SIZEvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_MAX_FRAME_SIZEvalue. If unavailable, returnsnull.
-
setMaxFrameSize
Sets theSETTINGS_MAX_FRAME_SIZEvalue.- Parameters:
value- TheSETTINGS_MAX_FRAME_SIZEvalue.- Throws:
IllegalArgumentException- if verification of the setting fails.
-
getMaxHeaderListSize
Gets theSETTINGS_MAX_HEADER_LIST_SIZEvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_MAX_HEADER_LIST_SIZEvalue. If unavailable, returnsnull.
-
setMaxHeaderListSize
Sets theSETTINGS_MAX_HEADER_LIST_SIZEvalue.- Parameters:
value- TheSETTINGS_MAX_HEADER_LIST_SIZEvalue.- Throws:
IllegalArgumentException- if verification of the setting fails.
-
SETTINGS_ENABLE_PUSHsetting makes no sense when sent by the server, and clients must reject any setting exceptfalse(the default) according to the spec.