public class SimpleConnectionGroup extends AbstractConnectionGroup
ConnectionGroup.Type
Constructor and Description |
---|
SimpleConnectionGroup(String name,
String identifier,
Directory<String,Connection> connectionDirectory,
Directory<String,ConnectionGroup> connectionGroupDirectory)
Creates a new SimpleConnectionGroup having the given name and identifier
which will expose the given directories as its contents.
|
Modifier and Type | Method and Description |
---|---|
GuacamoleSocket |
connect(GuacamoleClientInformation info)
Establishes a connection to guacd using a connection chosen from among
the connections in this ConnectionGroup, and returns the resulting,
connected GuacamoleSocket.
|
Directory<String,Connection> |
getConnectionDirectory()
Retrieves a Directory which can be used to view and manipulate
connections and their configurations, but only as allowed by the
permissions given to the user.
|
Directory<String,ConnectionGroup> |
getConnectionGroupDirectory()
Retrieves a Directory which can be used to view and manipulate
connection groups and their members, but only as allowed by the
permissions given to the user.
|
equals, getIdentifier, getName, getType, hashCode, setIdentifier, setName, setType
public SimpleConnectionGroup(String name, String identifier, Directory<String,Connection> connectionDirectory, Directory<String,ConnectionGroup> connectionGroupDirectory)
name
- The name to associate with this connection.identifier
- The identifier to associate with this connection.connectionDirectory
- The connection directory to expose when
requested.connectionGroupDirectory
- The connection group directory to expose
when requested.public Directory<String,Connection> getConnectionDirectory() throws GuacamoleException
ConnectionGroup
GuacamoleException
- If an error occurs while creating the
Directory.public Directory<String,ConnectionGroup> getConnectionGroupDirectory() throws GuacamoleException
ConnectionGroup
GuacamoleException
- If an error occurs while creating the
Directory.public GuacamoleSocket connect(GuacamoleClientInformation info) throws GuacamoleException
ConnectionGroup
info
- Information associated with the connecting client.GuacamoleException
- If an error occurs while connecting to guacd,
or if permission to connect is denied.Copyright © 2014. All rights reserved.