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 java.lang.ObjectHttp2 settings.
-
-
Constructor Summary
Constructors Constructor Description Http2Settings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetHeaderTableSize()Gets theSETTINGS_HEADER_TABLE_SIZEvalue.java.lang.IntegergetInitialWindowSize()Gets theSETTINGS_INITIAL_WINDOW_SIZEvalue.java.lang.LonggetMaxConcurrentStreams()Gets theSETTINGS_MAX_CONCURRENT_STREAMSvalue.java.lang.IntegergetMaxFrameSize()Gets theSETTINGS_MAX_FRAME_SIZEvalue.java.lang.LonggetMaxHeaderListSize()Gets theSETTINGS_MAX_HEADER_LIST_SIZEvalue.java.lang.BooleangetPushEnabled()Gets theSETTINGS_ENABLE_PUSHvalue.io.netty.handler.codec.http2.Http2Settingshttp2Settings()Returns netty's http2 settings.voidsetHeaderTableSize(java.lang.Long value)Sets theSETTINGS_HEADER_TABLE_SIZEvalue.voidsetInitialWindowSize(java.lang.Integer value)Sets theSETTINGS_INITIAL_WINDOW_SIZEvalue.voidsetMaxConcurrentStreams(java.lang.Long value)Sets theSETTINGS_MAX_CONCURRENT_STREAMSvalue.voidsetMaxFrameSize(java.lang.Integer value)Sets theSETTINGS_MAX_FRAME_SIZEvalue.voidsetMaxHeaderListSize(java.lang.Long value)Sets theSETTINGS_MAX_HEADER_LIST_SIZEvalue.voidsetPushEnabled(java.lang.Boolean enabled)Sets theSETTINGS_ENABLE_PUSHvalue.
-
-
-
Method Detail
-
http2Settings
public io.netty.handler.codec.http2.Http2Settings http2Settings()
Returns netty's http2 settings.- Returns:
- io.netty.handler.codec.http2.Http2Settings.
-
getHeaderTableSize
public java.lang.Long getHeaderTableSize()
Gets theSETTINGS_HEADER_TABLE_SIZEvalue. If unavailable, returnsnull.- Returns:
- The header table size or
null.
-
setHeaderTableSize
public void setHeaderTableSize(java.lang.Long value)
Sets theSETTINGS_HEADER_TABLE_SIZEvalue.- Parameters:
value- The header table size.- Throws:
java.lang.IllegalArgumentException- if verification of the setting fails.
-
getPushEnabled
public java.lang.Boolean getPushEnabled()
Gets theSETTINGS_ENABLE_PUSHvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_ENABLE_PUSHvalue. If unavailable, returnsnull.
-
setPushEnabled
public void setPushEnabled(java.lang.Boolean enabled)
Sets theSETTINGS_ENABLE_PUSHvalue.- Parameters:
enabled- TheSETTINGS_ENABLE_PUSHvalue.
-
getMaxConcurrentStreams
public java.lang.Long getMaxConcurrentStreams()
Gets theSETTINGS_MAX_CONCURRENT_STREAMSvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_MAX_CONCURRENT_STREAMSvalue. If unavailable, returnsnull.
-
setMaxConcurrentStreams
public void setMaxConcurrentStreams(java.lang.Long value)
Sets theSETTINGS_MAX_CONCURRENT_STREAMSvalue.- Parameters:
value- TheSETTINGS_MAX_CONCURRENT_STREAMSvalue.- Throws:
java.lang.IllegalArgumentException- if verification of the setting fails.
-
getInitialWindowSize
public java.lang.Integer getInitialWindowSize()
Gets theSETTINGS_INITIAL_WINDOW_SIZEvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_INITIAL_WINDOW_SIZEvalue. If unavailable, returnsnull.
-
setInitialWindowSize
public void setInitialWindowSize(java.lang.Integer value)
Sets theSETTINGS_INITIAL_WINDOW_SIZEvalue.- Parameters:
value- TheSETTINGS_INITIAL_WINDOW_SIZEvalue.- Throws:
java.lang.IllegalArgumentException- if verification of the setting fails.
-
getMaxFrameSize
public java.lang.Integer getMaxFrameSize()
Gets theSETTINGS_MAX_FRAME_SIZEvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_MAX_FRAME_SIZEvalue. If unavailable, returnsnull.
-
setMaxFrameSize
public void setMaxFrameSize(java.lang.Integer value)
Sets theSETTINGS_MAX_FRAME_SIZEvalue.- Parameters:
value- TheSETTINGS_MAX_FRAME_SIZEvalue.- Throws:
java.lang.IllegalArgumentException- if verification of the setting fails.
-
getMaxHeaderListSize
public java.lang.Long getMaxHeaderListSize()
Gets theSETTINGS_MAX_HEADER_LIST_SIZEvalue. If unavailable, returnsnull.- Returns:
- The
SETTINGS_MAX_HEADER_LIST_SIZEvalue. If unavailable, returnsnull.
-
setMaxHeaderListSize
public void setMaxHeaderListSize(java.lang.Long value)
Sets theSETTINGS_MAX_HEADER_LIST_SIZEvalue.- Parameters:
value- TheSETTINGS_MAX_HEADER_LIST_SIZEvalue.- Throws:
java.lang.IllegalArgumentException- if verification of the setting fails.
-
-