public class APIConnection extends Object
Constructor and Description |
---|
APIConnection()
Create an empty APIConnection.
|
APIConnection(Connection connection)
Create an APIConnection from a Connection record.
|
Modifier and Type | Method and Description |
---|---|
int |
getActiveConnections()
Returns the number of currently active connections using this
connection.
|
Map<String,String> |
getAttributes()
Returns a map of all attributes associated with this connection.
|
String |
getIdentifier()
Returns the unique identifier for this connection.
|
String |
getName()
Returns the name of this connection.
|
Map<String,String> |
getParameters()
Returns the parameter map for this connection.
|
String |
getParentIdentifier()
Returns the unique identifier for this connection.
|
String |
getProtocol()
Returns the protocol for this connection.
|
void |
setActiveUsers(int activeConnections)
Set the number of currently active connections using this connection.
|
void |
setAttributes(Map<String,String> attributes)
Sets the map of all attributes associated with this connection.
|
void |
setIdentifier(String identifier)
Sets the unique identifier for this connection.
|
void |
setName(String name)
Set the name of this connection.
|
void |
setParameters(Map<String,String> parameters)
Sets the parameter map for this connection.
|
void |
setParentIdentifier(String parentIdentifier)
Sets the parent connection group identifier for this connection.
|
void |
setProtocol(String protocol)
Sets the protocol for this connection.
|
public APIConnection()
public APIConnection(Connection connection) throws GuacamoleException
connection
- The connection to create this APIConnection from.GuacamoleException
- If a problem is encountered while
instantiating this new APIConnection.public String getName()
public void setName(String name)
name
- The name of this connection.public String getIdentifier()
public void setIdentifier(String identifier)
identifier
- The unique identifier for this connection.public String getParentIdentifier()
public void setParentIdentifier(String parentIdentifier)
parentIdentifier
- The parent connection group identifier
for this connection.public Map<String,String> getParameters()
public void setParameters(Map<String,String> parameters)
parameters
- The parameter map for this connection.public String getProtocol()
public void setProtocol(String protocol)
protocol
- protocol for this connection.public int getActiveConnections()
public void setActiveUsers(int activeConnections)
activeConnections
- The number of currently active usages of this connection.public Map<String,String> getAttributes()
Copyright © 2017. All rights reserved.