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_NOW
The current request/response is in an error state and it is not safe to
continue to use the existing connection which must be closed immediately.
|
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 |
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 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)
public boolean isIoAllowed()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.