Package org.apache.guacamole.net.auth
Class AbstractConnection
java.lang.Object
org.apache.guacamole.net.auth.AbstractIdentifiable
org.apache.guacamole.net.auth.AbstractConnection
- All Implemented Interfaces:
Attributes,Connectable,Connection,Identifiable,Nameable,ReadableAttributes
- Direct Known Subclasses:
SimpleConnection
Basic implementation of a Guacamole connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.guacamole.protocol.GuacamoleConfigurationReturns the GuacamoleConfiguration associated with this Connection.getName()Returns the human-readable name assigned to this object.Returns the unique identifier of the parent ConnectionGroup for this Connection.Returns identifiers of all readable sharing profiles that can be used to join this connection when it is active.voidsetConfiguration(org.apache.guacamole.protocol.GuacamoleConfiguration configuration) Sets the GuacamoleConfiguration associated with this Connection.voidSets the human-readable name assigned to this object.voidsetParentIdentifier(String parentIdentifier) Sets the unique identifier of the parent ConnectionGroup for this Connection.Methods inherited from class org.apache.guacamole.net.auth.AbstractIdentifiable
equals, getIdentifier, hashCode, setIdentifierMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.guacamole.net.auth.Attributes
setAttributesMethods inherited from interface org.apache.guacamole.net.auth.Connectable
connect, connect, getActiveConnectionsMethods inherited from interface org.apache.guacamole.net.auth.Connection
getConnectionHistory, getHistory, getLastActiveMethods inherited from interface org.apache.guacamole.net.auth.Identifiable
getIdentifier, setIdentifierMethods inherited from interface org.apache.guacamole.net.auth.ReadableAttributes
getAttributes
-
Constructor Details
-
AbstractConnection
public AbstractConnection()
-
-
Method Details
-
getName
Description copied from interface:NameableReturns the human-readable name assigned to this object. -
setName
Description copied from interface:NameableSets the human-readable name assigned to this object. -
getParentIdentifier
Description copied from interface:ConnectionReturns the unique identifier of the parent ConnectionGroup for this Connection.- Specified by:
getParentIdentifierin interfaceConnection- Returns:
- The unique identifier of the parent ConnectionGroup for this Connection.
-
setParentIdentifier
Description copied from interface:ConnectionSets the unique identifier of the parent ConnectionGroup for this Connection.- Specified by:
setParentIdentifierin interfaceConnection- Parameters:
parentIdentifier- The unique identifier of the parent ConnectionGroup for this Connection.
-
getConfiguration
public org.apache.guacamole.protocol.GuacamoleConfiguration getConfiguration()Description copied from interface:ConnectionReturns the GuacamoleConfiguration associated with this Connection. Note that because configurations may contain sensitive information, some data in this configuration may be omitted or tokenized.- Specified by:
getConfigurationin interfaceConnection- Returns:
- The GuacamoleConfiguration associated with this Connection.
-
setConfiguration
public void setConfiguration(org.apache.guacamole.protocol.GuacamoleConfiguration configuration) Description copied from interface:ConnectionSets the GuacamoleConfiguration associated with this Connection.- Specified by:
setConfigurationin interfaceConnection- Parameters:
configuration- The GuacamoleConfiguration to associate with this Connection.
-
getSharingProfileIdentifiers
Description copied from interface:ConnectionReturns identifiers of all readable sharing profiles that can be used to join this connection when it is active. The level of access granted to a joining user is dictated by the connection parameters associated with the sharing profile, not necessarily the parameters of the primary connection being joined.- Specified by:
getSharingProfileIdentifiersin interfaceConnection- Returns:
- A Set of identifiers representing the sharing profiles for this connection.
- Throws:
org.apache.guacamole.GuacamoleException- If an error occurs while fetching the sharing profiles for this connection.
-