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 a Properties object. Whitespace at the end of property values is automatically trimmed.
  • Constructor Details

    • PropertiesGuacamoleProperties

      public PropertiesGuacamoleProperties(Properties properties)
      Creates a new PropertiesGuacamoleProperties which wraps the given Properties, 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

      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 interface GuacamoleProperties
      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.