Enum ReactiveRequest.Event.Type
- java.lang.Object
-
- java.lang.Enum<ReactiveRequest.Event.Type>
-
- org.eclipse.jetty.reactive.client.ReactiveRequest.Event.Type
-
- All Implemented Interfaces:
Serializable,Comparable<ReactiveRequest.Event.Type>
- Enclosing class:
- ReactiveRequest.Event
public static enum ReactiveRequest.Event.Type extends Enum<ReactiveRequest.Event.Type>
The event types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEGINThe request is ready to be sentCOMMITThe request headers have been sentCONTENTA chunk of content has been sentFAILUREThe request failedHEADERSThe request headers have been preparedQUEUEDThe request has been queuedSUCCESSThe request succeeded
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReactiveRequest.Event.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static ReactiveRequest.Event.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUEUED
public static final ReactiveRequest.Event.Type QUEUED
The request has been queued
-
BEGIN
public static final ReactiveRequest.Event.Type BEGIN
The request is ready to be sent
-
HEADERS
public static final ReactiveRequest.Event.Type HEADERS
The request headers have been prepared
-
COMMIT
public static final ReactiveRequest.Event.Type COMMIT
The request headers have been sent
-
CONTENT
public static final ReactiveRequest.Event.Type CONTENT
A chunk of content has been sent
-
SUCCESS
public static final ReactiveRequest.Event.Type SUCCESS
The request succeeded
-
FAILURE
public static final ReactiveRequest.Event.Type FAILURE
The request failed
-
-
Method Detail
-
values
public static ReactiveRequest.Event.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReactiveRequest.Event.Type c : ReactiveRequest.Event.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReactiveRequest.Event.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-