public class SimpleConnection extends AbstractConnection
Constructor and Description |
---|
SimpleConnection()
Creates a completely uninitialized SimpleConnection.
|
SimpleConnection(String identifier,
net.sourceforge.guacamole.protocol.GuacamoleConfiguration config)
Creates a new SimpleConnection having the given identifier and
GuacamoleConfiguration.
|
Modifier and Type | Method and Description |
---|---|
net.sourceforge.guacamole.net.GuacamoleSocket |
connect(net.sourceforge.guacamole.protocol.GuacamoleClientInformation info)
Establishes a connection to guacd using the GuacamoleConfiguration
associated with this Connection, and returns the resulting, connected
GuacamoleSocket.
|
List<ConnectionRecord> |
getHistory()
Returns a list of ConnectionRecords representing the usage history
of this Connection, including any active users.
|
equals, getConfiguration, getIdentifier, hashCode, setConfiguration, setIdentifier
public SimpleConnection()
public SimpleConnection(String identifier, net.sourceforge.guacamole.protocol.GuacamoleConfiguration config)
identifier
- The identifier to associated with this connection.config
- The configuration describing how to connect to this
connection.public net.sourceforge.guacamole.net.GuacamoleSocket connect(net.sourceforge.guacamole.protocol.GuacamoleClientInformation info) throws net.sourceforge.guacamole.GuacamoleException
Connection
info
- Information associated with the connecting client.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while connecting to guacd,
or if permission to connect is denied.public List<ConnectionRecord> getHistory() throws net.sourceforge.guacamole.GuacamoleException
Connection
net.sourceforge.guacamole.GuacamoleException
- If an error occurs while reading the history
of this connection, or if permission is
denied.Copyright © 2013. All Rights Reserved.