APIdia Launch Partner
Top Description Inners Constructors Methods
sun.security.util

public Class PropertyExpander

extends Object
Class Inheritance
Imports
java.net.URI, .URISyntaxException, java.security.GeneralSecurityException, java.util.function.UnaryOperator

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
expand(String value)

public static String
expand(String value, boolean encodeURL)

private static String
expand(String value, boolean encodeURL, UnaryOperator<String> propertiesGetter)

public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PropertyExpanderback to summary
public PropertyExpander()

Method Detail

expandback to summary
public static String expand(String value) throws ExpandException
expandback to summary
public static String expand(String value, boolean encodeURL) throws ExpandException
expandback to summary
private static String expand(String value, boolean encodeURL, UnaryOperator<String> propertiesGetter) throws ExpandException
expandNonStrictback to summary
public static String expandNonStrict(String value)
sun.security.util back to summary

public Class PropertyExpander.ExpandException

extends GeneralSecurityException
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.GeneralSecurityException.serialVersionUID.

Annotations
@Serial

Constructor Detail

ExpandExceptionback to summary
public ExpandException(String msg)