Top Fields Constructors Methods
org.apache.coyote

public final Enum ErrorState

extends Enum<ErrorState>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ErrorState
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.

public static final ErrorState
CLOSE_CONNECTION_NOW

An error has been detected that impacts the underlying network connection.

public static final ErrorState
CLOSE_NOW

The current request/response is in an error state and it is not safe to continue to use them.

private final boolean
private final boolean
private final boolean
public static final ErrorState
NONE

Not in an error state.

private final int

Constructor Summary

AccessConstructor and Description
private
ErrorState(boolean error, int severity, boolean ioAllowed, boolean connectionIoAllowed)

Method Summary

Modifier and TypeMethod and Description
public ErrorState

Returns:

The most severe error state from the the provided error state and this one
getMostSevere
(ErrorState
The error state to compare to this one
input
)

Compare this ErrorState with the provided ErrorState and return the most severe.

public boolean
public boolean
public boolean
public static ErrorState
public static ErrorState[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLOSE_CLEANback to summary
public static final ErrorState 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_CONNECTION_NOWback to summary
public static final ErrorState 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.

CLOSE_NOWback to summary
public static final ErrorState 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.

connectionIoAllowedback to summary
private final boolean connectionIoAllowed
errorback to summary
private final boolean error
ioAllowedback to summary
private final boolean ioAllowed
NONEback to summary
public static final ErrorState NONE

Not in an error state.

severityback to summary
private final int severity

Constructor Detail

ErrorStateback to summary
private ErrorState(boolean error, int severity, boolean ioAllowed, boolean connectionIoAllowed)

Method Detail

getMostSevereback to summary
public ErrorState getMostSevere(ErrorState input)

Compare this ErrorState with the provided ErrorState and return the most severe.

Parameters
input:ErrorState

The error state to compare to this one

Returns:ErrorState

The most severe error state from the the provided error state and this one

isConnectionIoAllowedback to summary
public boolean isConnectionIoAllowed()
isErrorback to summary
public boolean isError()
isIoAllowedback to summary
public boolean isIoAllowed()
valueOfback to summary
public static ErrorState valueOf(String name)
valuesback to summary
public static ErrorState[] values()