Package org.jboss.resteasy.util
Class PathHelper
java.lang.Object
org.jboss.resteasy.util.PathHelper
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.
- Since:
- 1.0 Nov 8, 2006
- Author:
- Ryan J. McDonough, Bill Burke
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final charstatic final Stringstatic final Patternstatic final Stringstatic final Stringstatic final Stringstatic final Patternstatic final Stringstatic final Patternstatic final PatternA regex pattern that searches for a URI template parameter in the form of {*}static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetEncodedPathInfo(String path, String contextPath) static Stringstatic Stringstatic CharSequenceA cheaper (memory-wise) version of replaceEnclosedCurlyBraces(String str).
-
Field Details
-
URI_PARAM_NAME_REGEX
- See Also:
-
URI_PARAM_REGEX_REGEX
- See Also:
-
URI_PARAM_REGEX
- See Also:
-
URI_PARAM_WITH_REGEX
- See Also:
-
URI_PARAM_WITHOUT_REGEX
- See Also:
-
URI_PARAM_PATTERN
-
URI_PARAM_WITH_REGEX_PATTERN
-
URI_PARAM_WITHOUT_REGEX_PATTERN
-
URI_TEMPLATE_PATTERN
A regex pattern that searches for a URI template parameter in the form of {*} -
URI_TEMPLATE_REPLACE_PATTERN
- See Also:
-
openCurlyReplacement
public static final char openCurlyReplacement- See Also:
-
closeCurlyReplacement
public static final char closeCurlyReplacement- See Also:
-
-
Constructor Details
-
PathHelper
public PathHelper()
-
-
Method Details
-
getEncodedPathInfo
-
replaceEnclosedCurlyBraces
-
replaceEnclosedCurlyBracesCS
A cheaper (memory-wise) version of replaceEnclosedCurlyBraces(String str).- Parameters:
str- input string- Returns:
- replaced output
-
recoverEnclosedCurlyBraces
-