public static enum ServerResponse.NsStatus extends java.lang.Enum<ServerResponse.NsStatus>
| Modifier and Type | Method and Description |
|---|---|
static ServerResponse.NsStatus |
fromStatusCode(long code) |
long |
getStatusCode() |
static ServerResponse.NsStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServerResponse.NsStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerResponse.NsStatus OK
public static final ServerResponse.NsStatus ERROR_FAILURE
public static final ServerResponse.NsStatus ERROR_OUT_OF_MEMORY
public static final ServerResponse.NsStatus ERROR_MALFORMED_URI
public static final ServerResponse.NsStatus ERROR_CONNECTION_REFUSED
public static final ServerResponse.NsStatus ERROR_NET_TIMEOUT
public static final ServerResponse.NsStatus ERROR_NO_CONTENT
public static final ServerResponse.NsStatus ERROR_UNKNOWN_PROTOCOL
public static final ServerResponse.NsStatus ERROR_NET_RESET
public static final ServerResponse.NsStatus ERROR_UNKNOWN_HOST
public static final ServerResponse.NsStatus ERROR_REDIRECT_LOOP
public static final ServerResponse.NsStatus ERROR_UNKNOWN_PROXY_HOST
public static final ServerResponse.NsStatus ERROR_NET_INTERRUPT
public static final ServerResponse.NsStatus ERROR_UNKNOWN_PROXY_CONNECTION_REFUSED
public static final ServerResponse.NsStatus CUSTOM_ERROR_BASE
public static final ServerResponse.NsStatus ERROR_NOT_INITIALIZED
public static ServerResponse.NsStatus[] values()
for (ServerResponse.NsStatus c : ServerResponse.NsStatus.values()) System.out.println(c);
public static ServerResponse.NsStatus 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 long getStatusCode()
public static ServerResponse.NsStatus fromStatusCode(long code)