public class SimpleConnectionDirectory extends Object implements Directory<String,Connection>
| Constructor and Description |
|---|
SimpleConnectionDirectory(Map<String,net.sourceforge.guacamole.protocol.GuacamoleConfiguration> configs)
Creates a new SimpleConnectionDirectory which provides
access to the configurations contained within the given Map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Connection connection)
Adds the given object to the overall set.
|
Connection |
get(String identifier)
Returns the object having the given identifier.
|
Set<String> |
getIdentifiers()
Returns a Set containing all identifiers for all objects within this
Directory.
|
void |
remove(String identifier)
Removes the object with the given identifier from the overall set.
|
void |
update(Connection connection)
Updates the stored object with the data contained in the given object.
|
public SimpleConnectionDirectory(Map<String,net.sourceforge.guacamole.protocol.GuacamoleConfiguration> configs)
configs - The Map of GuacamoleConfigurations to provide access to.public Connection get(String identifier) throws net.sourceforge.guacamole.GuacamoleException
Directoryget in interface Directory<String,Connection>identifier - The identifier to use when locating the object to
return.net.sourceforge.guacamole.GuacamoleException - If an error occurs while retrieving the
object, or if permission for retrieving the
object is denied.public Set<String> getIdentifiers() throws net.sourceforge.guacamole.GuacamoleException
DirectorygetIdentifiers in interface Directory<String,Connection>net.sourceforge.guacamole.GuacamoleException - If an error occurs while retrieving
the identifiers.public void add(Connection connection) throws net.sourceforge.guacamole.GuacamoleException
Directoryadd in interface Directory<String,Connection>connection - The object to add.net.sourceforge.guacamole.GuacamoleException - If an error occurs while adding the object , or
if adding the object is not allowed.public void update(Connection connection) throws net.sourceforge.guacamole.GuacamoleException
Directoryupdate in interface Directory<String,Connection>connection - The object which will supply the data for the update.net.sourceforge.guacamole.GuacamoleException - If an error occurs while updating the object,
or if updating the object is not allowed.public void remove(String identifier) throws net.sourceforge.guacamole.GuacamoleException
Directoryremove in interface Directory<String,Connection>identifier - The identifier of the object to remove.net.sourceforge.guacamole.GuacamoleException - If an error occurs while removing the object,
or if removing object is not allowed.Copyright © 2013. All Rights Reserved.