Enum CannedResponse
- java.lang.Object
-
- java.lang.Enum<CannedResponse>
-
- org.smallmind.web.reverse.http1_1.CannedResponse
-
- All Implemented Interfaces:
Serializable,Comparable<CannedResponse>
public enum CannedResponse extends Enum<CannedResponse>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_GATEWAYBAD_REQUESTGATEWAY_TIMEOUTLENGTH_REQUIREDNOT_FOUND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffergetByteBuffer()static CannedResponsevalueOf(String name)Returns the enum constant of this type with the specified name.static CannedResponse[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BAD_REQUEST
public static final CannedResponse BAD_REQUEST
-
NOT_FOUND
public static final CannedResponse NOT_FOUND
-
LENGTH_REQUIRED
public static final CannedResponse LENGTH_REQUIRED
-
BAD_GATEWAY
public static final CannedResponse BAD_GATEWAY
-
GATEWAY_TIMEOUT
public static final CannedResponse GATEWAY_TIMEOUT
-
-
Method Detail
-
values
public static CannedResponse[] 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 (CannedResponse c : CannedResponse.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CannedResponse 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
-
getByteBuffer
public ByteBuffer getByteBuffer()
-
-