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)
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()
Identifiable
getIdentifier
in interface Identifiable
public void setIdentifier(String identifier)
Identifiable
setIdentifier
in interface Identifiable
identifier
- The identifier to assign.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 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 Set<String> getConnectionIdentifiers() throws org.apache.guacamole.GuacamoleException
ConnectionGroup
getConnectionIdentifiers
in interface ConnectionGroup
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the identifiers.public Set<String> getConnectionGroupIdentifiers() throws org.apache.guacamole.GuacamoleException
ConnectionGroup
getConnectionGroupIdentifiers
in interface ConnectionGroup
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the identifiers.public Map<String,String> getAttributes()
Attributes
getAttributes
in interface Attributes
public void setAttributes(Map<String,String> attributes)
Attributes
setAttributes
in interface 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
connect
in interface 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 int getActiveConnections()
Connectable
getActiveConnections
in interface Connectable
Copyright © 2018. All rights reserved.