Class NettyHttpServerConfiguration.Http2Settings

  • Enclosing class:
    NettyHttpServerConfiguration

    @ConfigurationProperties("http2")
    public static class NettyHttpServerConfiguration.Http2Settings
    extends java.lang.Object
    Http2 settings.
    • Constructor Summary

      Constructors 
      Constructor Description
      Http2Settings()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Long getHeaderTableSize()
      Gets the SETTINGS_HEADER_TABLE_SIZE value.
      java.lang.Integer getInitialWindowSize()
      Gets the SETTINGS_INITIAL_WINDOW_SIZE value.
      java.lang.Long getMaxConcurrentStreams()
      Gets the SETTINGS_MAX_CONCURRENT_STREAMS value.
      java.lang.Integer getMaxFrameSize()
      Gets the SETTINGS_MAX_FRAME_SIZE value.
      java.lang.Long getMaxHeaderListSize()
      Gets the SETTINGS_MAX_HEADER_LIST_SIZE value.
      java.lang.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.
      io.netty.handler.codec.http2.Http2Settings http2Settings()
      Returns netty's http2 settings.
      void setHeaderTableSize​(java.lang.Long value)
      Sets the SETTINGS_HEADER_TABLE_SIZE value.
      void setInitialWindowSize​(java.lang.Integer value)
      Sets the SETTINGS_INITIAL_WINDOW_SIZE value.
      void setMaxConcurrentStreams​(java.lang.Long value)
      Sets the SETTINGS_MAX_CONCURRENT_STREAMS value.
      void setMaxFrameSize​(java.lang.Integer value)
      Sets the SETTINGS_MAX_FRAME_SIZE value.
      void setMaxHeaderListSize​(java.lang.Long value)
      Sets the SETTINGS_MAX_HEADER_LIST_SIZE value.
      void setPushEnabled​(java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Http2Settings

        public Http2Settings()
    • 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 the SETTINGS_HEADER_TABLE_SIZE value. If unavailable, returns null.
        Returns:
        The header table size or null.
      • setHeaderTableSize

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

        @Deprecated
        public java.lang.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​(java.lang.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 java.lang.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​(java.lang.Long value)
        Sets the SETTINGS_MAX_CONCURRENT_STREAMS value.
        Parameters:
        value - The SETTINGS_MAX_CONCURRENT_STREAMS value.
        Throws:
        java.lang.IllegalArgumentException - if verification of the setting fails.
      • getInitialWindowSize

        public java.lang.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​(java.lang.Integer value)
        Sets the SETTINGS_INITIAL_WINDOW_SIZE value.
        Parameters:
        value - The SETTINGS_INITIAL_WINDOW_SIZE value.
        Throws:
        java.lang.IllegalArgumentException - if verification of the setting fails.
      • getMaxFrameSize

        public java.lang.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​(java.lang.Integer value)
        Sets the SETTINGS_MAX_FRAME_SIZE value.
        Parameters:
        value - The SETTINGS_MAX_FRAME_SIZE value.
        Throws:
        java.lang.IllegalArgumentException - if verification of the setting fails.
      • getMaxHeaderListSize

        public java.lang.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​(java.lang.Long value)
        Sets the SETTINGS_MAX_HEADER_LIST_SIZE value.
        Parameters:
        value - The SETTINGS_MAX_HEADER_LIST_SIZE value.
        Throws:
        java.lang.IllegalArgumentException - if verification of the setting fails.