public class TunnelRequestService extends Object
| Constructor and Description |
|---|
TunnelRequestService() |
| Modifier and Type | Method and Description |
|---|---|
protected GuacamoleTunnel |
createAssociatedTunnel(GuacamoleSession session,
GuacamoleTunnel tunnel,
TunnelRequest.Type type,
String id)
Associates the given tunnel with the given session, returning a wrapped
version of the same tunnel which automatically handles closure and
removal from the session.
|
protected GuacamoleTunnel |
createConnectedTunnel(UserContext context,
TunnelRequest.Type type,
String id,
GuacamoleClientInformation info)
Creates a new tunnel using which is connected to the connection or
connection group identifier by the given ID.
|
GuacamoleTunnel |
createTunnel(TunnelRequest request)
Creates a new tunnel using the parameters and credentials present in
the given request.
|
protected GuacamoleClientInformation |
getClientInformation(TunnelRequest request)
Reads and returns the client information provided within the given
request.
|
protected GuacamoleClientInformation getClientInformation(TunnelRequest request) throws GuacamoleException
request - The request describing tunnel to create.GuacamoleException - If the parameters of the tunnel request are invalid.protected GuacamoleTunnel createConnectedTunnel(UserContext context, TunnelRequest.Type type, String id, GuacamoleClientInformation info) throws GuacamoleException
info parameter.context - The UserContext associated with the user for whom the tunnel is
being created.type - The type of object being connected to (connection or group).id - The id of the connection or group being connected to.info - Information describing the connected Guacamole client.GuacamoleException - If an error occurs while creating the tunnel.protected GuacamoleTunnel createAssociatedTunnel(GuacamoleSession session, GuacamoleTunnel tunnel, TunnelRequest.Type type, String id) throws GuacamoleException
tunnel - The connected tunnel to wrap and monitor.session - The Guacamole session to associate the tunnel with.type - The type of object being connected to (connection or group).id - The id of the connection or group being connected to.GuacamoleException - If an error occurs while obtaining the tunnel.public GuacamoleTunnel createTunnel(TunnelRequest request) throws GuacamoleException
request - The request describing the tunnel to create.GuacamoleException - If an error occurs while creating the tunnel.Copyright © 2015. All rights reserved.