Package org.apache.guacamole.properties
Class PropertiesGuacamoleProperties
- java.lang.Object
-
- org.apache.guacamole.properties.PropertiesGuacamoleProperties
-
- All Implemented Interfaces:
GuacamoleProperties
- Direct Known Subclasses:
FileGuacamoleProperties
public class PropertiesGuacamoleProperties extends Object implements GuacamoleProperties
GuacamoleProperties implementation which reads all properties from aProperties
object. Whitespace at the end of property values is automatically trimmed.
-
-
Constructor Summary
Constructors Constructor Description PropertiesGuacamoleProperties(Properties properties)
Creates a new PropertiesGuacamoleProperties which wraps the givenProperties
, providing access to the values of any properties defined therein.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getProperty(String name)
Returns the value of the property having the given name, if defined.
-
-
-
Constructor Detail
-
PropertiesGuacamoleProperties
public PropertiesGuacamoleProperties(Properties properties)
Creates a new PropertiesGuacamoleProperties which wraps the givenProperties
, providing access to the values of any properties defined therein.- Parameters:
properties
- The Properties that should be used as the source of all property values exposed by this instance of PropertiesGuacamoleProperties.
-
-
Method Detail
-
getProperty
public String getProperty(String name) throws org.apache.guacamole.GuacamoleException
Description copied from interface:GuacamoleProperties
Returns the value of the property having the given name, if defined. If no such property exists, null is returned.- Specified by:
getProperty
in interfaceGuacamoleProperties
- Parameters:
name
- The name of the property to retrieve.- Returns:
- The value of the given property, or null if no such property is defined.
- Throws:
org.apache.guacamole.GuacamoleException
- If an error prevents the given property from being read.
-
-