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()
ConnectionGroup
getName
in interface ConnectionGroup
public void setName(String name)
ConnectionGroup
setName
in interface ConnectionGroup
name
- The name to assign.public String getIdentifier()
Identifiable
getIdentifier
in interface Identifiable
public void setIdentifier(String identifier)
Identifiable
setIdentifier
in interface Identifiable
identifier
- The identifier to assign.public String getParentIdentifier()
ConnectionGroup
getParentIdentifier
in interface ConnectionGroup
public void setParentIdentifier(String parentIdentifier)
ConnectionGroup
setParentIdentifier
in interface ConnectionGroup
parentIdentifier
- The unique identifier of the parent
ConnectionGroup for this ConnectionGroup.public void setType(ConnectionGroup.Type type)
ConnectionGroup
setType
in interface ConnectionGroup
type
- The type of this ConnectionGroup.public ConnectionGroup.Type getType()
ConnectionGroup
getType
in interface ConnectionGroup
public int getActiveConnections()
Connectable
getActiveConnections
in interface Connectable
public Set<String> getConnectionIdentifiers()
ConnectionGroup
getConnectionIdentifiers
in interface ConnectionGroup
public Set<String> getConnectionGroupIdentifiers()
ConnectionGroup
getConnectionGroupIdentifiers
in interface ConnectionGroup
public Map<String,String> getAttributes()
ConnectionGroup
getAttributes
in interface ConnectionGroup
public void setAttributes(Map<String,String> attributes)
ConnectionGroup
setAttributes
in interface ConnectionGroup
attributes
- A map of all attribute identifiers to their corresponding values.public GuacamoleTunnel connect(GuacamoleClientInformation info) throws GuacamoleException
Connectable
connect
in interface 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 © 2016. All rights reserved.