public class APIConnectionGroupWrapper extends Object implements ConnectionGroup
ConnectionGroup.Type| Constructor and Description |
|---|
APIConnectionGroupWrapper(APIConnectionGroup apiConnectionGroup)
Create a new APIConnectionGroupWrapper to wrap the given
APIConnectionGroup as a ConnectionGroup.
|
| 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.
|
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 APIConnectionGroupWrapper(APIConnectionGroup apiConnectionGroup)
apiConnectionGroup - the APIConnectionGroup to wrap.public String getName()
ConnectionGroupgetName in interface ConnectionGrouppublic void setName(String name)
ConnectionGroupsetName in interface ConnectionGroupname - The name to assign.public String getIdentifier()
IdentifiablegetIdentifier in interface Identifiablepublic void setIdentifier(String identifier)
IdentifiablesetIdentifier in interface Identifiableidentifier - The identifier 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 int getActiveConnections()
ConnectablegetActiveConnections in interface Connectablepublic Set<String> getConnectionIdentifiers()
ConnectionGroupgetConnectionIdentifiers in interface ConnectionGrouppublic Set<String> getConnectionGroupIdentifiers()
ConnectionGroupgetConnectionGroupIdentifiers in interface ConnectionGrouppublic Map<String,String> getAttributes()
ConnectionGroupgetAttributes in interface ConnectionGrouppublic void setAttributes(Map<String,String> attributes)
ConnectionGroupsetAttributes in interface ConnectionGroupattributes - A map of all attribute identifiers to their corresponding values.public GuacamoleTunnel connect(GuacamoleClientInformation info) throws GuacamoleException
Connectableconnect in interface Connectableinfo - 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.