Enum Class RequestReadFailureReason
- All Implemented Interfaces:
Serializable, Comparable<RequestReadFailureReason>, Constable
Reasons a request could not be read or parsed into a valid
Request.- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn unexpected internal error occurred while reading or parsing the request.The request body could not be transparently decompressed per the configuredRequestDecompressionPolicy— an unsupportedContent-Encoding(415), undecodable content (400), or another decompression failure before a validRequestcould be built.The request reader rejected the task (for example, due to queue saturation).The initial request read timed out before a full request could be parsed.The incoming request could not be parsed into a valid HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestReadFailureReasonReturns the enum constant of this class with the specified name.static RequestReadFailureReason[]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
-
UNPARSEABLE_REQUEST
The incoming request could not be parsed into a valid HTTP request. -
REQUEST_READ_TIMEOUT
The initial request read timed out before a full request could be parsed. -
REQUEST_READ_REJECTED
The request reader rejected the task (for example, due to queue saturation). -
REQUEST_BODY_DECOMPRESSION_FAILED
The request body could not be transparently decompressed per the configuredRequestDecompressionPolicy— an unsupportedContent-Encoding(415), undecodable content (400), or another decompression failure before a validRequestcould be built. Decompression size/ratio limit violations for otherwise-parseable requests use the normal content-too-large request path instead. -
INTERNAL_ERROR
An unexpected internal error occurred while reading or parsing the request.
-
-
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
-