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 |
---|---|
org.apache.guacamole.net.GuacamoleTunnel |
connect(org.apache.guacamole.protocol.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 object.
|
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.
|
getName, getParentIdentifier, getType, setName, setParentIdentifier, setType
equals, getIdentifier, hashCode, setIdentifier
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getIdentifier, setIdentifier
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()
Attributes
public void setAttributes(Map<String,String> attributes)
Attributes
attributes
- A map of all attribute identifiers to their corresponding values.public org.apache.guacamole.net.GuacamoleTunnel connect(org.apache.guacamole.protocol.GuacamoleClientInformation info) throws org.apache.guacamole.GuacamoleException
Connectable
info
- Information associated with the connecting client.org.apache.guacamole.GuacamoleException
- If an error occurs while connecting to guacd, or if permission to
connect is denied.Copyright © 2018. All rights reserved.