public static enum Response.StatusCode extends java.lang.Enum<Response.StatusCode>
Enum Constant and Description |
---|
BAD_MESSAGE |
CONNECITON_LOST |
EOF |
FAILURE |
NO_CONNECTION |
NO_SUCH_FILE |
OK |
OP_UNSUPPORTED |
PERMISSION_DENIED |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Response.StatusCode |
fromInt(int code) |
static Response.StatusCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Response.StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Response.StatusCode UNKNOWN
public static final Response.StatusCode OK
public static final Response.StatusCode EOF
public static final Response.StatusCode NO_SUCH_FILE
public static final Response.StatusCode PERMISSION_DENIED
public static final Response.StatusCode FAILURE
public static final Response.StatusCode BAD_MESSAGE
public static final Response.StatusCode NO_CONNECTION
public static final Response.StatusCode CONNECITON_LOST
public static final Response.StatusCode OP_UNSUPPORTED
public static Response.StatusCode[] values()
for (Response.StatusCode c : Response.StatusCode.values()) System.out.println(c);
public static Response.StatusCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Response.StatusCode fromInt(int code)