Package com.sun.ts.lib.util.sec.security.util

# Class PropertyExpander

java.lang.Object
com.sun.ts.lib.util.sec.security.util.PropertyExpander

public class PropertyExpander extends Object
A utility class to expand properties embedded in a string. Strings of the form ${some.property.name} are expanded to be the value of the property. Also, the special ${/} property is expanded to be the same as file.separator. If a property is not set, a GeneralSecurityException will be thrown.

Author:
  Roland Schemers

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `PropertyExpander.ExpandException`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PropertyExpander()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `expand(String value)`
  `static String`
  `expand(String value, boolean encodeURL)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PropertyExpander

    public PropertyExpander()

- ## Method Details

  - ### expand

    public static String expand(String value) throws PropertyExpander.ExpandException
    Throws:
      `PropertyExpander.ExpandException`

  - ### expand

    public static String expand(String value, boolean encodeURL) throws PropertyExpander.ExpandException
    Throws:
      `PropertyExpander.ExpandException`