public enum GuacamoleStatus extends Enum<GuacamoleStatus>
| Enum Constant and Description | 
|---|
| CLIENT_BAD_REQUESTThe operation could not be performed because bad parameters were given. | 
| CLIENT_BAD_TYPEThe client sent data of an unsupported or unexpected type. | 
| CLIENT_FORBIDDENPermission was denied to perform the operation, and this operation will
 not be granted even if the user is authorized. | 
| CLIENT_OVERRUNThe client sent too much data. | 
| CLIENT_TIMEOUTThe client took too long to respond. | 
| CLIENT_TOO_MANYThe operation failed because the current client is already using too
 many resources. | 
| CLIENT_UNAUTHORIZEDPermission was denied to perform the operation, as the user is not yet
 authorized (not yet logged in, for example). | 
| RESOURCE_CLOSEDThe operation could not be performed as the requested resource is now
 closed. | 
| RESOURCE_CONFLICTThe operation could not be performed as the requested resource is already
 in use. | 
| RESOURCE_NOT_FOUNDThe operation could not be performed as the requested resource does not
 exist. | 
| SERVER_BUSYThe operation could not be performed as the server is busy. | 
| SERVER_ERRORThe operation could not be performed due to an internal failure. | 
| SESSION_CLOSEDThe session within the upstream server has been forcibly terminated. | 
| SESSION_CONFLICTThe session within the upstream server has ended because it conflicted
 with another session. | 
| SESSION_TIMEOUTThe session within the upstream server has ended because it appeared to
 be inactive. | 
| SUCCESSThe operation succeeded. | 
| UNSUPPORTEDThe requested operation is unsupported. | 
| UPSTREAM_ERRORThe operation was unsuccessful due to an error or otherwise unexpected
 condition of the upstream server. | 
| UPSTREAM_NOT_FOUNDThe operation could not be performed because the upstream server does
 not appear to exist. | 
| UPSTREAM_TIMEOUTThe operation could not be performed because the upstream server is not
 responding. | 
| UPSTREAM_UNAVAILABLEThe operation could not be performed because the upstream server is not
 available to service the request. | 
| 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 RESOURCE_CLOSED
public static final GuacamoleStatus UPSTREAM_NOT_FOUND
public static final GuacamoleStatus UPSTREAM_UNAVAILABLE
public static final GuacamoleStatus SESSION_CONFLICT
public static final GuacamoleStatus SESSION_TIMEOUT
public static final GuacamoleStatus SESSION_CLOSED
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 © 2017. All rights reserved.