Class HTTP2Settings

java.lang.Object
org.omegazero.http.h2.util.HTTP2Settings

public class HTTP2Settings extends Object
An instance of this class stores HTTP/2 settings for a connection.
Since:
1.2.1
  • Constructor Details

  • Method Details

    • get

      public int get(int setting)
      Returns the setting identified by the given setting number defined in HTTPConstants.
      Parameters:
      setting - The setting number
      Returns:
      The value
      Throws:
      IllegalArgumentException - If the given setting number is invalid
    • set

      public void set(int setting, int value)
      Sets the setting identified by the given setting number defined in HTTPConstants to the given value.
      Parameters:
      setting - The setting number
      value - The value
      Throws:
      IllegalArgumentException - If the given setting number is invalid
    • getDefault

      public static int getDefault(int setting)
      Returns the default value for the given setting number defined in HTTPConstants.
      Parameters:
      setting - The setting number
      Returns:
      The default value
      Throws:
      IllegalArgumentException - If the given setting number is invalid
    • getDefaultSettingsData

      public static int[] getDefaultSettingsData()
      Returns an array containing the default HTTP2Settings.
      Returns:
      The settings