Enum RequestProtocolError
- java.lang.Object
-
- java.lang.Enum<RequestProtocolError>
-
- org.apache.http.impl.client.cache.RequestProtocolError
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RequestProtocolError>
enum RequestProtocolError extends java.lang.Enum<RequestProtocolError>
- Since:
- 4.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BODY_BUT_NO_LENGTH_ERROR
NO_CACHE_DIRECTIVE_WITH_FIELD_NAME
UNKNOWN
WEAK_ETAG_AND_RANGE_ERROR
WEAK_ETAG_ON_PUTDELETE_METHOD_ERROR
-
Constructor Summary
Constructors Modifier Constructor Description private
RequestProtocolError()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestProtocolError
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RequestProtocolError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final RequestProtocolError UNKNOWN
-
BODY_BUT_NO_LENGTH_ERROR
public static final RequestProtocolError BODY_BUT_NO_LENGTH_ERROR
-
WEAK_ETAG_ON_PUTDELETE_METHOD_ERROR
public static final RequestProtocolError WEAK_ETAG_ON_PUTDELETE_METHOD_ERROR
-
WEAK_ETAG_AND_RANGE_ERROR
public static final RequestProtocolError WEAK_ETAG_AND_RANGE_ERROR
-
NO_CACHE_DIRECTIVE_WITH_FIELD_NAME
public static final RequestProtocolError NO_CACHE_DIRECTIVE_WITH_FIELD_NAME
-
-
Method Detail
-
values
public static RequestProtocolError[] 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 (RequestProtocolError c : RequestProtocolError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestProtocolError valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-