public class ConfiguredGuacamoleSocket extends Object implements GuacamoleSocket
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 |
---|---|
void |
close()
Releases all resources in use by the connection represented by this
GuacamoleSocket.
|
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.
|
GuacamoleReader |
getReader()
Returns a GuacamoleReader which can be used to read from the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
GuacamoleWriter |
getWriter()
Returns a GuacamoleWriter which can be used to write to the
Guacamole instruction stream associated with the connection
represented by this GuacamoleSocket.
|
boolean |
isOpen()
Returns whether this GuacamoleSocket is open and can be used for reading
and writing.
|
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 GuacamoleWriter getWriter()
GuacamoleSocket
getWriter
in interface GuacamoleSocket
public GuacamoleReader getReader()
GuacamoleSocket
getReader
in interface GuacamoleSocket
public void close() throws GuacamoleException
GuacamoleSocket
close
in interface GuacamoleSocket
GuacamoleException
- If an error occurs while releasing resources.public boolean isOpen()
GuacamoleSocket
isOpen
in interface GuacamoleSocket
Copyright © 2016. All rights reserved.