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)
Deprecated.
|
org.apache.guacamole.net.GuacamoleTunnel |
connect(org.apache.guacamole.protocol.GuacamoleClientInformation info,
Map<String,String> tokens)
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.@Deprecated 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.public org.apache.guacamole.net.GuacamoleTunnel connect(org.apache.guacamole.protocol.GuacamoleClientInformation info, Map<String,String> tokens) throws org.apache.guacamole.GuacamoleException
Connectable
TokenFilter
.info
- Information associated with the connecting client.tokens
- A Map containing the token names and corresponding values to be
applied as parameter tokens when establishing the connection. If the
implementation does not support parameter tokens, this Map may be
ignored.org.apache.guacamole.GuacamoleException
- If an error occurs while connecting to guacd, or if permission to
connect is denied.Copyright © 2020. All rights reserved.