public abstract class GuacamoleWebSocketTunnelEndpoint
extends javax.websocket.Endpoint
Constructor and Description |
---|
GuacamoleWebSocketTunnelEndpoint() |
Modifier and Type | Method and Description |
---|---|
protected abstract GuacamoleTunnel |
createTunnel(javax.websocket.Session session,
javax.websocket.EndpointConfig config)
Returns a new tunnel for the given session.
|
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason) |
void |
onMessage(String message) |
void |
onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig config) |
protected abstract GuacamoleTunnel createTunnel(javax.websocket.Session session, javax.websocket.EndpointConfig config) throws GuacamoleException
session
- The session associated with the active WebSocket
connection.config
- Configuration information associated with the instance of
the endpoint created for handling this single connection.GuacamoleException
- If an error occurs while retrieving the
tunnel, or if access to the tunnel is denied.public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config)
onOpen
in class javax.websocket.Endpoint
public void onMessage(String message)
public void onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)
onClose
in class javax.websocket.Endpoint
Copyright © 2016. All rights reserved.