public interface Connection
Modifier and Type | Method and Description |
---|---|
GuacamoleSocket |
connect(GuacamoleClientInformation info)
Establishes a connection to guacd using the GuacamoleConfiguration
associated with this Connection, and returns the resulting, connected
GuacamoleSocket.
|
GuacamoleConfiguration |
getConfiguration()
Returns the GuacamoleConfiguration associated with this Connection.
|
List<? extends ConnectionRecord> |
getHistory()
Returns a list of ConnectionRecords representing the usage history
of this Connection, including any active users.
|
String |
getIdentifier()
Returns the unique identifier assigned to this Connection.
|
String |
getName()
Returns the name assigned to this Connection.
|
void |
setConfiguration(GuacamoleConfiguration config)
Sets the GuacamoleConfiguration associated with this Connection.
|
void |
setIdentifier(String identifier)
Sets the identifier assigned to this Connection.
|
void |
setName(String name)
Sets the name assigned to this Connection.
|
String getName()
void setName(String name)
identifier
- The name to assign.String getIdentifier()
void setIdentifier(String identifier)
identifier
- The identifier to assign.GuacamoleConfiguration getConfiguration()
void setConfiguration(GuacamoleConfiguration config)
config
- The GuacamoleConfiguration to associate with this
Connection.GuacamoleSocket connect(GuacamoleClientInformation info) throws GuacamoleException
info
- Information associated with the connecting client.GuacamoleException
- If an error occurs while connecting to guacd,
or if permission to connect is denied.List<? extends ConnectionRecord> getHistory() throws GuacamoleException
GuacamoleException
- If an error occurs while reading the history
of this connection, or if permission is
denied.Copyright © 2014. All rights reserved.