Enum Class HttpTransportObserver.StreamOutcome
java.lang.Object
java.lang.Enum<HttpTransportObserver.StreamOutcome>
io.helidon.http.HttpTransportObserver.StreamOutcome
- All Implemented Interfaces:
Serializable, Comparable<HttpTransportObserver.StreamOutcome>, Constable
- Enclosing interface:
HttpTransportObserver
public static enum HttpTransportObserver.StreamOutcome
extends Enum<HttpTransportObserver.StreamOutcome>
Stream termination outcome.
REJECTED takes precedence over RESET when a stream is refused before application processing,
including when the refusal is conveyed using reset signaling. RESET applies to other explicit resets,
and CANCELLED applies when the stream lifecycle is cancelled without a reset or stream failure.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStream lifecycle was cancelled without an explicit reset or stream failure.Stream completed normally.Stream ended because of a non-reset error.Stream was rejected before application processing.Stream was explicitly reset without known rejection semantics. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static HttpTransportObserver.StreamOutcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPLETED
Stream completed normally. -
REJECTED
Stream was rejected before application processing. -
RESET
Stream was explicitly reset without known rejection semantics. -
CANCELLED
Stream lifecycle was cancelled without an explicit reset or stream failure. -
ERROR
Stream ended because of a non-reset error.
-
-
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
-