Package org.apache.guacamole.net
Class SSLGuacamoleSocket
java.lang.Object
org.apache.guacamole.net.SSLGuacamoleSocket
- All Implemented Interfaces:
 GuacamoleSocket
Provides abstract socket-like access to a Guacamole connection over SSL to
 a given hostname and port.
- 
Constructor Summary
ConstructorsConstructorDescriptionSSLGuacamoleSocket(String hostname, int port) Creates a new SSLGuacamoleSocket which reads and writes instructions to the Guacamole instruction stream of the Guacamole proxy server running at the given hostname and port using SSL. - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Releases all resources in use by the connection represented by this GuacamoleSocket.Returns a GuacamoleReader which can be used to read from the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.Returns a GuacamoleWriter which can be used to write to the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.booleanisOpen()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, waitMethods inherited from interface org.apache.guacamole.net.GuacamoleSocket
getProtocol 
- 
Constructor Details
- 
SSLGuacamoleSocket
Creates a new SSLGuacamoleSocket which reads and writes instructions to the Guacamole instruction stream of the Guacamole proxy server running at the given hostname and port using SSL.- Parameters:
 hostname- The hostname of the Guacamole proxy server to connect to.port- The port of the Guacamole proxy server to connect to.- Throws:
 GuacamoleException- If an error occurs while connecting to the Guacamole proxy server.
 
 - 
 - 
Method Details
- 
close
Description copied from interface:GuacamoleSocketReleases all resources in use by the connection represented by this GuacamoleSocket.- Specified by:
 closein interfaceGuacamoleSocket- Throws:
 GuacamoleException- If an error occurs while releasing resources.
 - 
getReader
Description copied from interface:GuacamoleSocketReturns a GuacamoleReader which can be used to read from the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.- Specified by:
 getReaderin interfaceGuacamoleSocket- Returns:
 - A GuacamoleReader which can be used to read from the Guacamole instruction stream.
 
 - 
getWriter
Description copied from interface:GuacamoleSocketReturns a GuacamoleWriter which can be used to write to the Guacamole instruction stream associated with the connection represented by this GuacamoleSocket.- Specified by:
 getWriterin interfaceGuacamoleSocket- Returns:
 - A GuacamoleWriter which can be used to write to the Guacamole instruction stream.
 
 - 
isOpen
public boolean isOpen()Description copied from interface:GuacamoleSocketReturns whether this GuacamoleSocket is open and can be used for reading and writing.- Specified by:
 isOpenin interfaceGuacamoleSocket- Returns:
 - true if this GuacamoleSocket is open, false otherwise.
 
 
 -