- All Implemented Interfaces:
- Serializable,- Comparable<Http.ResponseStatus.Family>,- Constable
- Enclosing interface:
- Http.ResponseStatus
An enumeration representing the class of status code. Family is used
 here since class is overloaded in Java.
 
Copied from JAX-RS.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescription4xxHTTP status codes.1xxHTTP status codes.Other, unrecognized HTTP status codes.3xxHTTP status codes.5xxHTTP status codes.2xxHTTP status codes.
- 
Method SummaryModifier and TypeMethodDescriptionstatic Http.ResponseStatus.Familyof(int statusCode) Get the family for the response status code.static Http.ResponseStatus.FamilyReturns the enum constant of this class with the specified name.static Http.ResponseStatus.Family[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
INFORMATIONAL1xxHTTP status codes.
- 
SUCCESSFUL2xxHTTP status codes.
- 
REDIRECTION3xxHTTP status codes.
- 
CLIENT_ERROR4xxHTTP status codes.
- 
SERVER_ERROR5xxHTTP status codes.
- 
OTHEROther, unrecognized HTTP status codes.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
ofGet the family for the response status code.- Parameters:
- statusCode- response status code to get the family for.
- Returns:
- family of the response status code.
 
 
-