Package org.asynchttpclient.request.body
Enum Body.BodyState
- java.lang.Object
-
- java.lang.Enum<Body.BodyState>
-
- org.asynchttpclient.request.body.Body.BodyState
-
- All Implemented Interfaces:
Serializable
,Comparable<Body.BodyState>
- Enclosing interface:
- Body
public static enum Body.BodyState extends Enum<Body.BodyState>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Body.BodyState
valueOf(String name)
Returns the enum constant of this type with the specified name.static Body.BodyState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final Body.BodyState CONTINUE
There's something to read
-
SUSPEND
public static final Body.BodyState SUSPEND
There's nothing to read and input has to suspend
-
STOP
public static final Body.BodyState STOP
There's nothing to read and input has to stop
-
-
Method Detail
-
values
public static Body.BodyState[] 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 (Body.BodyState c : Body.BodyState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Body.BodyState 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
-
-