public enum GuacamoleStatus extends Enum<GuacamoleStatus>
Enum Constant and Description |
---|
CLIENT_BAD_REQUEST
The operation could not be performed because bad parameters were given.
|
CLIENT_BAD_TYPE
The client sent data of an unsupported or unexpected type.
|
CLIENT_FORBIDDEN
Permission was denied to perform the operation, and this operation will
not be granted even if the user is authorized.
|
CLIENT_OVERRUN
The client sent too much data.
|
CLIENT_TIMEOUT
The client took too long to respond.
|
CLIENT_TOO_MANY
The operation failed because the current client is already using too
many resources.
|
CLIENT_UNAUTHORIZED
Permission was denied to perform the operation, as the user is not yet
authorized (not yet logged in, for example).
|
RESOURCE_CONFLICT
The operation could not be performed as the requested resource is already
in use.
|
RESOURCE_NOT_FOUND
The operation could not be performed as the requested resource does not
exist.
|
SERVER_BUSY
The operation could not be performed as the server is busy.
|
SERVER_ERROR
The operation could not be performed due to an internal failure.
|
SUCCESS
The operation succeeded.
|
UNSUPPORTED
The requested operation is unsupported.
|
UPSTREAM_ERROR
The operation was unsuccessful due to an error or otherwise unexpected
condition of the upstream server.
|
UPSTREAM_TIMEOUT
The operation could not be performed because the upstream server is not
responding.
|
Modifier and Type | Method and Description |
---|---|
static GuacamoleStatus |
fromGuacamoleStatusCode(int code)
Returns the GuacamoleStatus corresponding to the given Guacamole
protocol status code.
|
int |
getGuacamoleStatusCode()
Returns the corresponding Guacamole protocol status code.
|
int |
getHttpStatusCode()
Returns the most applicable HTTP error code.
|
int |
getWebSocketCode()
Returns the most applicable HTTP error code.
|
static GuacamoleStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GuacamoleStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GuacamoleStatus SUCCESS
public static final GuacamoleStatus UNSUPPORTED
public static final GuacamoleStatus SERVER_ERROR
public static final GuacamoleStatus SERVER_BUSY
public static final GuacamoleStatus UPSTREAM_TIMEOUT
public static final GuacamoleStatus UPSTREAM_ERROR
public static final GuacamoleStatus RESOURCE_NOT_FOUND
public static final GuacamoleStatus RESOURCE_CONFLICT
public static final GuacamoleStatus CLIENT_BAD_REQUEST
public static final GuacamoleStatus CLIENT_UNAUTHORIZED
public static final GuacamoleStatus CLIENT_FORBIDDEN
public static final GuacamoleStatus CLIENT_TIMEOUT
public static final GuacamoleStatus CLIENT_OVERRUN
public static final GuacamoleStatus CLIENT_BAD_TYPE
public static final GuacamoleStatus CLIENT_TOO_MANY
public static GuacamoleStatus[] values()
for (GuacamoleStatus c : GuacamoleStatus.values()) System.out.println(c);
public static GuacamoleStatus 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 int getHttpStatusCode()
public int getWebSocketCode()
public int getGuacamoleStatusCode()
public static GuacamoleStatus fromGuacamoleStatusCode(int code)
code
- The Guacamole protocol status code to translate into a
GuacamoleStatus.Copyright © 2016. All rights reserved.