Package org.apache.guacamole.net
Class SimpleGuacamoleTunnel
- java.lang.Object
-
- org.apache.guacamole.net.AbstractGuacamoleTunnel
-
- org.apache.guacamole.net.SimpleGuacamoleTunnel
-
- All Implemented Interfaces:
GuacamoleTunnel
public class SimpleGuacamoleTunnel extends AbstractGuacamoleTunnel
GuacamoleTunnel implementation which uses a provided socket. The UUID of the tunnel will be randomly generated.
-
-
Field Summary
-
Fields inherited from interface org.apache.guacamole.net.GuacamoleTunnel
INTERNAL_DATA_OPCODE
-
-
Constructor Summary
Constructors Constructor Description SimpleGuacamoleTunnel(GuacamoleSocket socket)
Creates a new GuacamoleTunnel which synchronizes access to the Guacamole instruction stream associated with the given GuacamoleSocket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GuacamoleSocket
getSocket()
Returns the GuacamoleSocket used by this GuacamoleTunnel for reading and writing.UUID
getUUID()
Returns the unique identifier associated with this GuacamoleTunnel.-
Methods inherited from class org.apache.guacamole.net.AbstractGuacamoleTunnel
acquireReader, acquireWriter, close, hasQueuedReaderThreads, hasQueuedWriterThreads, isOpen, releaseReader, releaseWriter
-
-
-
-
Constructor Detail
-
SimpleGuacamoleTunnel
public SimpleGuacamoleTunnel(GuacamoleSocket socket)
Creates a new GuacamoleTunnel which synchronizes access to the Guacamole instruction stream associated with the given GuacamoleSocket.- Parameters:
socket
- The GuacamoleSocket to provide synchronized access for.
-
-
Method Detail
-
getUUID
public UUID getUUID()
Description copied from interface:GuacamoleTunnel
Returns the unique identifier associated with this GuacamoleTunnel.- Returns:
- The unique identifier associated with this GuacamoleTunnel.
-
getSocket
public GuacamoleSocket getSocket()
Description copied from interface:GuacamoleTunnel
Returns the GuacamoleSocket used by this GuacamoleTunnel for reading and writing.- Returns:
- The GuacamoleSocket used by this GuacamoleTunnel.
-
-