public enum ErrorState extends Enum<ErrorState>
Enum Constant and Description |
---|
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.
|
CLOSE_CONNECTION_NOW
An error has been detected that impacts the underlying network
connection.
|
CLOSE_NOW
The current request/response is in an error state and it is not safe to
continue to use them.
|
NONE
Not in an error state.
|
Modifier and Type | Method and Description |
---|---|
ErrorState |
getMostSevere(ErrorState input)
Compare this ErrorState with the provided ErrorState and return the most
severe.
|
boolean |
isConnectionIoAllowed() |
boolean |
isError() |
boolean |
isIoAllowed() |
static ErrorState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorState NONE
public static final ErrorState CLOSE_CLEAN
public static final ErrorState CLOSE_NOW
public static final ErrorState CLOSE_CONNECTION_NOW
public static ErrorState[] values()
for (ErrorState c : ErrorState.values()) System.out.println(c);
public static ErrorState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isError()
public ErrorState getMostSevere(ErrorState input)
input
- The error state to compare to this onepublic boolean isIoAllowed()
public boolean isConnectionIoAllowed()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.