public class ConfiguredGuacamoleSocket extends DelegatingGuacamoleSocket
Constructor and Description |
---|
ConfiguredGuacamoleSocket(GuacamoleSocket socket,
GuacamoleConfiguration config)
Creates a new ConfiguredGuacamoleSocket which uses the given
GuacamoleConfiguration to complete the initial protocol handshake over
the given GuacamoleSocket.
|
ConfiguredGuacamoleSocket(GuacamoleSocket socket,
GuacamoleConfiguration config,
GuacamoleClientInformation info)
Creates a new ConfiguredGuacamoleSocket which uses the given
GuacamoleConfiguration and GuacamoleClientInformation to complete the
initial protocol handshake over the given GuacamoleSocket.
|
Modifier and Type | Method and Description |
---|---|
GuacamoleConfiguration |
getConfiguration()
Returns the GuacamoleConfiguration used to configure this
ConfiguredGuacamoleSocket.
|
String |
getConnectionID()
Returns the unique ID associated with the Guacamole connection
negotiated by this ConfiguredGuacamoleSocket.
|
String |
getProtocol()
Returns the name of the protocol to be used.
|
GuacamoleProtocolVersion |
getProtocolVersion()
Returns the version of the Guacamole protocol associated with the
Guacamole connection negotiated by this ConfiguredGuacamoleSocket.
|
close, getDelegateSocket, getReader, getWriter, isOpen
public ConfiguredGuacamoleSocket(GuacamoleSocket socket, GuacamoleConfiguration config) throws GuacamoleException
socket
- The GuacamoleSocket to wrap.config
- The GuacamoleConfiguration to use to complete the initial
protocol handshake.GuacamoleException
- If an error occurs while completing the
initial protocol handshake.public ConfiguredGuacamoleSocket(GuacamoleSocket socket, GuacamoleConfiguration config, GuacamoleClientInformation info) throws GuacamoleException
socket
- The GuacamoleSocket to wrap.config
- The GuacamoleConfiguration to use to complete the initial
protocol handshake.info
- The GuacamoleClientInformation to use to complete the initial
protocol handshake.GuacamoleException
- If an error occurs while completing the
initial protocol handshake.public GuacamoleConfiguration getConfiguration()
public String getConnectionID()
public GuacamoleProtocolVersion getProtocolVersion()
public String getProtocol()
GuacamoleSocket
Implementations should aim to expose the name of the underlying protocol, such that protocol-specific responses like the "required" and "argv" instructions can be handled correctly by code consuming the GuacamoleSocket.
getProtocol
in interface GuacamoleSocket
getProtocol
in class DelegatingGuacamoleSocket
Copyright © 2020. All rights reserved.