|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.guacamole.protocol.ConfiguredGuacamoleSocket
public class ConfiguredGuacamoleSocket
A GuacamoleSocket which pre-configures the connection based on a given GuacamoleConfiguration, completing the initial protocol handshake before accepting data for read or write. This is useful for forcing a connection to the Guacamole proxy server with a specific configuration while disallowing the client that will be using this GuacamoleSocket from manually controlling the initial protocol handshake.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
close()
Releases all resources in use by the connection represented by this GuacamoleSocket. |
GuacamoleConfiguration |
getConfiguration()
Returns the GuacamoleConfiguration used to configure 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public GuacamoleConfiguration getConfiguration()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |