Top Description Fields Constructors Methods
org.keycloak.common.util

public Class PathHelper

extends Object
Class Inheritance
Imports
java.util.regex.Pattern

A utility class for handling URI template parameters. As the Java regulare expressions package does not handle named groups, this class attempts to simulate that functionality by using groups.
Authors
Ryan J. McDonough, Bill Burke
Since
1.0 Nov 8, 2006

Field Summary

Modifier and TypeField and Description
public static final char
public static final char
public static final String
public static final Pattern
public static final String
public static final String
public static final Pattern
URI_TEMPLATE_PATTERN

A regex pattern that searches for a URI template parameter in the form of {*}

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

closeCurlyReplacementback to summary
public static final char closeCurlyReplacement
openCurlyReplacementback to summary
public static final char openCurlyReplacement
URI_PARAM_NAME_REGEXback to summary
public static final String URI_PARAM_NAME_REGEX
URI_PARAM_PATTERNback to summary
public static final Pattern URI_PARAM_PATTERN
URI_PARAM_REGEXback to summary
public static final String URI_PARAM_REGEX
URI_PARAM_REGEX_REGEXback to summary
public static final String URI_PARAM_REGEX_REGEX
URI_TEMPLATE_PATTERNback to summary
public static final Pattern URI_TEMPLATE_PATTERN

A regex pattern that searches for a URI template parameter in the form of {*}

Constructor Detail

PathHelperback to summary
public PathHelper()

Method Detail

recoverEnclosedCurlyBracesback to summary
public static String recoverEnclosedCurlyBraces(String str)
replaceEnclosedCurlyBracesback to summary
public static String replaceEnclosedCurlyBraces(String str)