Enum Class JKHttpStatus.Series

java.lang.Object
java.lang.Enum<JKHttpStatus.Series>
com.jk.core.http.JKHttpStatus.Series
All Implemented Interfaces:
Serializable, Comparable<JKHttpStatus.Series>, Constable
Enclosing class:
JKHttpStatus

public static enum JKHttpStatus.Series extends Enum<JKHttpStatus.Series>
Enumeration of HTTP status series.
  • Enum Constant Details

  • Method Details

    • values

      public static JKHttpStatus.Series[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JKHttpStatus.Series valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public int value()
      This method gets the integer value of this status series. Ranges from 1 to 5.
      Returns:
      the integer value of this status series. Ranges from 1 to 5.
    • valueOf

      public static JKHttpStatus.Series valueOf(JKHttpStatus status)
      This method gets the enum constant of this type with the corresponding series.
      Parameters:
      status - Specifies a standard HTTP status enum value.
      Returns:
      the enum constant of this type with the corresponding series.
      Throws:
      IllegalArgumentException - if this enum has no corresponding constant.
    • valueOf

      public static JKHttpStatus.Series valueOf(int statusCode)
      This method gets the enum constant of this type with the corresponding series.
      Parameters:
      statusCode - Specifies the HTTP status code (potentially non-standard).
      Returns:
      the enum constant of this type with the corresponding series.
      Throws:
      IllegalArgumentException - if this enum has no corresponding constant.
    • resolve

      @Nullable public static JKHttpStatus.Series resolve(int statusCode)
      This method resolve the given status code to an HttpStatus.Series, if possible.
      Parameters:
      statusCode - Specifies the HTTP status code (potentially non-standard).
      Returns:
      the corresponding Series, or null if not found.
      Since:
      5.1.3