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 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

      public Long getHeaderTableSize()
      Gets the SETTINGS_HEADER_TABLE_SIZE value. If unavailable, returns null.
      Returns:
      The header table size or null.
    • setHeaderTableSize

      public void setHeaderTableSize(Long value)
      Sets the SETTINGS_HEADER_TABLE_SIZE value.
      Parameters:
      value - The header table size.
      Throws:
      IllegalArgumentException - if verification of the setting fails.
    • getPushEnabled

      @Deprecated public Boolean getPushEnabled()
      Deprecated.
      The SETTINGS_ENABLE_PUSH setting makes no sense when sent by the server, and clients must reject any setting except false (the default) according to the spec.
      Gets the SETTINGS_ENABLE_PUSH value. If unavailable, returns null.
      Returns:
      The SETTINGS_ENABLE_PUSH value. If unavailable, returns null.
    • setPushEnabled

      @Deprecated public void setPushEnabled(Boolean enabled)
      Deprecated.
      The SETTINGS_ENABLE_PUSH setting makes no sense when sent by the server, and clients must reject any setting except false (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 - The SETTINGS_ENABLE_PUSH value.
    • getMaxConcurrentStreams

      public Long getMaxConcurrentStreams()
      Gets the SETTINGS_MAX_CONCURRENT_STREAMS value. If unavailable, returns null.
      Returns:
      The SETTINGS_MAX_CONCURRENT_STREAMS value. If unavailable, returns null.
    • setMaxConcurrentStreams

      public void setMaxConcurrentStreams(Long value)
      Sets the SETTINGS_MAX_CONCURRENT_STREAMS value.
      Parameters:
      value - The SETTINGS_MAX_CONCURRENT_STREAMS value.
      Throws:
      IllegalArgumentException - if verification of the setting fails.
    • getInitialWindowSize

      public Integer getInitialWindowSize()
      Gets the SETTINGS_INITIAL_WINDOW_SIZE value. If unavailable, returns null.
      Returns:
      The SETTINGS_INITIAL_WINDOW_SIZE value. If unavailable, returns null.
    • setInitialWindowSize

      public void setInitialWindowSize(Integer value)
      Sets the SETTINGS_INITIAL_WINDOW_SIZE value.
      Parameters:
      value - The SETTINGS_INITIAL_WINDOW_SIZE value.
      Throws:
      IllegalArgumentException - if verification of the setting fails.
    • getMaxFrameSize

      public Integer getMaxFrameSize()
      Gets the SETTINGS_MAX_FRAME_SIZE value. If unavailable, returns null.
      Returns:
      The SETTINGS_MAX_FRAME_SIZE value. If unavailable, returns null.
    • setMaxFrameSize

      public void setMaxFrameSize(Integer value)
      Sets the SETTINGS_MAX_FRAME_SIZE value.
      Parameters:
      value - The SETTINGS_MAX_FRAME_SIZE value.
      Throws:
      IllegalArgumentException - if verification of the setting fails.
    • getMaxHeaderListSize

      public Long getMaxHeaderListSize()
      Gets the SETTINGS_MAX_HEADER_LIST_SIZE value. If unavailable, returns null.
      Returns:
      The SETTINGS_MAX_HEADER_LIST_SIZE value. If unavailable, returns null.
    • setMaxHeaderListSize

      public void setMaxHeaderListSize(Long value)
      Sets the SETTINGS_MAX_HEADER_LIST_SIZE value.
      Parameters:
      value - The SETTINGS_MAX_HEADER_LIST_SIZE value.
      Throws:
      IllegalArgumentException - if verification of the setting fails.