public class SimpleConnectionGroup extends AbstractConnectionGroup
ConnectionGroup.Type
Constructor and Description |
---|
SimpleConnectionGroup(String name,
String identifier,
Collection<String> connectionIdentifiers,
Collection<String> connectionGroupIdentifiers)
Creates a new SimpleConnectionGroup having the given name and identifier
which will expose the given contents.
|
Modifier and Type | Method and Description |
---|---|
GuacamoleTunnel |
connect(GuacamoleClientInformation info)
Establishes a connection to guacd using the information associated with
this object.
|
int |
getActiveConnections()
Returns the number of active connections associated with this object.
|
Map<String,String> |
getAttributes()
Returns all attributes associated with this connection group.
|
Set<String> |
getConnectionGroupIdentifiers()
Returns the identifiers of all readable connection groups that are
children of this connection group.
|
Set<String> |
getConnectionIdentifiers()
Returns the identifiers of all readable connections that are children
of this connection group.
|
void |
setAttributes(Map<String,String> attributes)
Sets the given attributes.
|
equals, getIdentifier, getName, getParentIdentifier, getType, hashCode, setIdentifier, setName, setParentIdentifier, setType
public SimpleConnectionGroup(String name, String identifier, Collection<String> connectionIdentifiers, Collection<String> connectionGroupIdentifiers)
name
- The name to associate with this connection group.identifier
- The identifier to associate with this connection group.connectionIdentifiers
- The connection identifiers to expose when requested.connectionGroupIdentifiers
- The connection group identifiers to expose when requested.public int getActiveConnections()
Connectable
public Set<String> getConnectionIdentifiers()
ConnectionGroup
public Set<String> getConnectionGroupIdentifiers()
ConnectionGroup
public Map<String,String> getAttributes()
ConnectionGroup
public void setAttributes(Map<String,String> attributes)
ConnectionGroup
attributes
- A map of all attribute identifiers to their corresponding values.public GuacamoleTunnel connect(GuacamoleClientInformation info) throws GuacamoleException
Connectable
info
- Information associated with the connecting client.GuacamoleException
- If an error occurs while connecting to guacd, or if permission to
connect is denied.Copyright © 2015. All rights reserved.