GUACAMOLE-504: Add method for WebSocket status, and reconfigure REST API to use new HTTP method.
This commit is contained in:
1 parent
5239a83acc
commit
0c5b3012ac
2 files changed
+13
-1
No files matched your search
@@ -80,5 +80,17 @@ public class GuacamoleException extends Exception {
|
||||
public int getHttpStatusCode() {
|
||||
return getStatus().getHttpStatusCode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most applicable WebSocket status code that can be
|
||||
* associated with this exception.
|
||||
*
|
||||
* @return
|
||||
* An integer representing the most applicable WebSocket status
|
||||
* code associated with this exception.
|
||||
*/
|
||||
public int getWebSocketCode() {
|
||||
return getStatus().getWebSocketCode();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user