public class DelegatingConnectionGroup extends Object implements ConnectionGroup
ConnectionGroup.Type| Constructor and Description |
|---|
DelegatingConnectionGroup(ConnectionGroup connectionGroup)
Wraps the given ConnectionGroup such that all function calls against this
DelegatingConnectionGroup will be delegated to it.
|
| 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.
|
protected ConnectionGroup |
getDelegateConnectionGroup()
Returns the underlying ConnectionGroup wrapped by this
DelegatingConnectionGroup.
|
String |
getIdentifier()
Returns the unique identifier assigned to this object.
|
String |
getName()
Returns the name assigned to this ConnectionGroup.
|
String |
getParentIdentifier()
Returns the unique identifier of the parent ConnectionGroup for
this ConnectionGroup.
|
ConnectionGroup.Type |
getType()
Returns the type of this connection.
|
void |
setAttributes(Map<String,String> attributes)
Sets the given attributes.
|
void |
setIdentifier(String identifier)
Sets the identifier assigned to this object.
|
void |
setName(String name)
Sets the name assigned to this ConnectionGroup.
|
void |
setParentIdentifier(String parentIdentifier)
Sets the unique identifier of the parent ConnectionGroup for
this ConnectionGroup.
|
void |
setType(ConnectionGroup.Type type)
Set the type of this ConnectionGroup.
|
public DelegatingConnectionGroup(ConnectionGroup connectionGroup)
connectionGroup - The ConnectionGroup to wrap.protected ConnectionGroup getDelegateConnectionGroup()
public String getIdentifier()
IdentifiablegetIdentifier in interface Identifiablepublic void setIdentifier(String identifier)
IdentifiablesetIdentifier in interface Identifiableidentifier - The identifier to assign.public String getName()
ConnectionGroupgetName in interface ConnectionGrouppublic void setName(String name)
ConnectionGroupsetName in interface ConnectionGroupname - The name to assign.public String getParentIdentifier()
ConnectionGroupgetParentIdentifier in interface ConnectionGrouppublic void setParentIdentifier(String parentIdentifier)
ConnectionGroupsetParentIdentifier in interface ConnectionGroupparentIdentifier - The unique identifier of the parent
ConnectionGroup for this ConnectionGroup.public void setType(ConnectionGroup.Type type)
ConnectionGroupsetType in interface ConnectionGrouptype - The type of this ConnectionGroup.public ConnectionGroup.Type getType()
ConnectionGroupgetType in interface ConnectionGrouppublic Set<String> getConnectionIdentifiers() throws org.apache.guacamole.GuacamoleException
ConnectionGroupgetConnectionIdentifiers in interface ConnectionGrouporg.apache.guacamole.GuacamoleException - If an error occurs while retrieving the identifiers.public Set<String> getConnectionGroupIdentifiers() throws org.apache.guacamole.GuacamoleException
ConnectionGroupgetConnectionGroupIdentifiers in interface ConnectionGrouporg.apache.guacamole.GuacamoleException - If an error occurs while retrieving the identifiers.public Map<String,String> getAttributes()
AttributesgetAttributes in interface Attributespublic void setAttributes(Map<String,String> attributes)
AttributessetAttributes in interface Attributesattributes - 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
Connectableconnect in interface Connectableinfo - 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
ConnectableTokenFilter.connect in interface Connectableinfo - 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.public int getActiveConnections()
ConnectablegetActiveConnections in interface ConnectableCopyright © 2020. All rights reserved.