Top Description Fields Constructors Methods
io.netty5.handler.codec.http

public sealed Enum HttpStatusClass

extends Enum<HttpStatusClass>
Class Inheritance
Imports
io.netty5.util.AsciiString

The class of HTTP status.

Field Summary

Modifier and TypeField and Description
public static final HttpStatusClass
CLIENT_ERROR

The client error class (4xx)

private final AsciiString
public static final HttpStatusClass
INFORMATIONAL

The informational class (1xx)

private final int
private final int
public static final HttpStatusClass
REDIRECTION

The redirection class (3xx)

public static final HttpStatusClass
SERVER_ERROR

The server error class (5xx)

public static final HttpStatusClass
SUCCESS

The success class (2xx)

public static final HttpStatusClass
UNKNOWN

The unknown class

Constructor Summary

AccessConstructor and Description
private
HttpStatusClass(int min, int max, String defaultReasonPhrase)

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(int code)

Returns true if and only if the specified HTTP status code falls into this class.

pack-priv AsciiString
defaultReasonPhrase()

Returns the default reason phrase of this HTTP status class.

private static int
digit(char c)

private static boolean
isDigit(char c)

public static HttpStatusClass
public static HttpStatusClass
valueOf(int code)

Returns the class of the specified HTTP status code.

public static HttpStatusClass
valueOf(CharSequence
Just the numeric portion of the http status code.
code
)

Returns the class of the specified HTTP status code.

public static HttpStatusClass[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLIENT_ERRORback to summary
public static final HttpStatusClass CLIENT_ERROR

The client error class (4xx)

defaultReasonPhraseback to summary
private final AsciiString defaultReasonPhrase
INFORMATIONALback to summary
public static final HttpStatusClass INFORMATIONAL

The informational class (1xx)

maxback to summary
private final int max
minback to summary
private final int min
REDIRECTIONback to summary
public static final HttpStatusClass REDIRECTION

The redirection class (3xx)

SERVER_ERRORback to summary
public static final HttpStatusClass SERVER_ERROR

The server error class (5xx)

SUCCESSback to summary
public static final HttpStatusClass SUCCESS

The success class (2xx)

UNKNOWNback to summary
public static final HttpStatusClass UNKNOWN

The unknown class

Constructor Detail

HttpStatusClassback to summary
private HttpStatusClass(int min, int max, String defaultReasonPhrase)

Method Detail

containsback to summary
public boolean contains(int code)

Returns true if and only if the specified HTTP status code falls into this class.

defaultReasonPhraseback to summary
pack-priv AsciiString defaultReasonPhrase()

Returns the default reason phrase of this HTTP status class.

digitback to summary
private static int digit(char c)
isDigitback to summary
private static boolean isDigit(char c)
valueOfback to summary
public static HttpStatusClass valueOf(String name)
valueOfback to summary
public static HttpStatusClass valueOf(int code)

Returns the class of the specified HTTP status code.

valueOfback to summary
public static HttpStatusClass valueOf(CharSequence code)

Returns the class of the specified HTTP status code.

Parameters
code:CharSequence

Just the numeric portion of the http status code.

valuesback to summary
public static HttpStatusClass[] values()