Enum Class ErrorState
- All Implemented Interfaces:
Serializable
,Comparable<ErrorState>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe current request/response is in an error state and while it is safe to complete the current response it is not safe to continue to use the existing connection which must be closed once the response has been completed.An error has been detected that impacts the underlying network connection.The current request/response is in an error state and it is not safe to continue to use them.Not in an error state. -
Method Summary
Modifier and TypeMethodDescriptiongetMostSevere
(ErrorState input) Compare this ErrorState with the provided ErrorState and return the most severe.boolean
boolean
isError()
boolean
static ErrorState
Returns the enum constant of this class with the specified name.static ErrorState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Not in an error state. -
CLOSE_CLEAN
The current request/response is in an error state and while it is safe to complete the current response it is not safe to continue to use the existing connection which must be closed once the response has been completed. For multiplexed protocols, the channel must be closed when the current request/response completes but the connection may continue. -
CLOSE_NOW
The current request/response is in an error state and it is not safe to continue to use them. For multiplexed protocols (such as HTTP/2) the stream/channel must be closed immediately but the connection may continue. For non-multiplexed protocols (AJP, HTTP/1.x) the current connection must be closed. -
CLOSE_CONNECTION_NOW
An error has been detected that impacts the underlying network connection. It is not safe to continue using the network connection which must be closed immediately. For multiplexed protocols (such as HTTP/2) this impacts all multiplexed channels.
-
-
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
-
isError
public boolean isError() -
getMostSevere
Compare this ErrorState with the provided ErrorState and return the most severe.- Parameters:
input
- The error state to compare to this one- Returns:
- The most severe error state from the the provided error state and this one
-
isIoAllowed
public boolean isIoAllowed() -
isConnectionIoAllowed
public boolean isConnectionIoAllowed()
-