public enum CannedResponse extends Enum<CannedResponse>
| Enum Constant and Description |
|---|
BAD_GATEWAY |
BAD_REQUEST |
GATEWAY_TIMEOUT |
LENGTH_REQUIRED |
NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getByteBuffer() |
static CannedResponse |
valueOf(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.
|
public static final CannedResponse BAD_REQUEST
public static final CannedResponse NOT_FOUND
public static final CannedResponse LENGTH_REQUIRED
public static final CannedResponse BAD_GATEWAY
public static final CannedResponse GATEWAY_TIMEOUT
public static CannedResponse[] values()
for (CannedResponse c : CannedResponse.values()) System.out.println(c);
public static CannedResponse valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic ByteBuffer getByteBuffer()
Copyright © 2017. All rights reserved.