Enum Class UnparsedRequestReason
- All Implemented Interfaces:
Serializable, Comparable<UnparsedRequestReason>, Constable
Reasons an HTTP transport can reject incoming bytes before it has enough
valid information to construct a
Request.
These values describe why request construction stopped; they do not prescribe an
HTTP response status. A ResponseMarshaler may choose any final status
from 200 through 599 for an unparsed-request response.
This type may gain reviewed constants in Soklet 4.x; use a forward-compatible default when switching over its values.
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe request declares an expectation the transport cannot satisfy.The incoming bytes do not form a valid HTTP request.The request body cannot be decoded using its declared content coding.The request header section exceeds a configured transport limit.Reading an in-progress request exceeded the transport's deadline.The request target exceeds the transport's configured limit.The aggregate request size exceeds a configured limit before a validRequestcan be constructed.Opt-in request decompression does not support the declared content coding. -
Method Summary
Modifier and TypeMethodDescriptionstatic UnparsedRequestReasonReturns the enum constant of this class with the specified name.static UnparsedRequestReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MALFORMED_REQUEST
The incoming bytes do not form a valid HTTP request. The default response marshaler conventionally uses HTTP 400. -
REQUEST_TARGET_TOO_LONG
The request target exceeds the transport's configured limit. The default response marshaler conventionally uses HTTP 414. -
EXPECTATION_FAILED
The request declares an expectation the transport cannot satisfy. The default response marshaler conventionally uses HTTP 417. -
REQUEST_HEADERS_TOO_LARGE
The request header section exceeds a configured transport limit. The default response marshaler conventionally uses HTTP 431. -
REQUEST_READ_TIMEOUT
Reading an in-progress request exceeded the transport's deadline. The default response marshaler conventionally uses HTTP 408. -
REQUEST_TOO_LARGE
The aggregate request size exceeds a configured limit before a validRequestcan be constructed. The default marshaler uses HTTP 413. -
UNSUPPORTED_CONTENT_ENCODING
Opt-in request decompression does not support the declared content coding. The default response marshaler conventionally uses HTTP 415. -
REQUEST_BODY_DECOMPRESSION_FAILED
The request body cannot be decoded using its declared content coding. The default response marshaler conventionally uses HTTP 400.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-