public abstract class GuacamoleWebSocketTunnelServlet
extends org.eclipse.jetty.websocket.WebSocketServlet
Constructor and Description |
---|
GuacamoleWebSocketTunnelServlet() |
Modifier and Type | Method and Description |
---|---|
static void |
closeConnection(org.eclipse.jetty.websocket.WebSocket.Connection connection,
GuacamoleStatus guac_status)
Sends the given status on the given WebSocket connection and closes the
connection.
|
protected abstract GuacamoleTunnel |
doConnect(javax.servlet.http.HttpServletRequest request)
Called whenever the JavaScript Guacamole client makes a connection
request.
|
org.eclipse.jetty.websocket.WebSocket |
doWebSocketConnect(javax.servlet.http.HttpServletRequest request,
String protocol) |
checkOrigin, destroy, init, service
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static void closeConnection(org.eclipse.jetty.websocket.WebSocket.Connection connection, GuacamoleStatus guac_status)
connection
- The WebSocket connection to close.guac_status
- The status to send.public org.eclipse.jetty.websocket.WebSocket doWebSocketConnect(javax.servlet.http.HttpServletRequest request, String protocol)
protected abstract GuacamoleTunnel doConnect(javax.servlet.http.HttpServletRequest request) throws GuacamoleException
request
- The HttpServletRequest associated with the connection
request received. Any parameters specified along with
the connection request can be read from this object.GuacamoleException
- If an error occurs while constructing the
GuacamoleTunnel, or if the conditions
required for connection are not met.Copyright © 2016. All rights reserved.