Package org.apache.guacamole.properties
Class PropertiesGuacamoleProperties
java.lang.Object
org.apache.guacamole.properties.PropertiesGuacamoleProperties
- All Implemented Interfaces:
GuacamoleProperties
- Direct Known Subclasses:
FileGuacamoleProperties
GuacamoleProperties implementation which reads all properties from a
Properties
object. Whitespace at the end of property values is
automatically trimmed.-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesGuacamoleProperties
(Properties properties) Creates a new PropertiesGuacamoleProperties which wraps the givenProperties
, providing access to the values of any properties defined therein. -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String name) Returns the value of the property having the given name, if defined.
-
Constructor Details
-
PropertiesGuacamoleProperties
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 Details
-
getProperty
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.
-