Package org.jboss.resteasy.util
Class PathHelper
- java.lang.Object
-
- org.jboss.resteasy.util.PathHelper
-
public class PathHelper extends java.lang.ObjectA 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
-
-
Field Summary
Fields Modifier and Type Field Description static charcloseCurlyReplacementstatic charopenCurlyReplacementstatic java.lang.StringURI_PARAM_NAME_REGEXstatic java.util.regex.PatternURI_PARAM_PATTERNstatic java.lang.StringURI_PARAM_REGEXstatic java.lang.StringURI_PARAM_REGEX_REGEXstatic java.lang.StringURI_PARAM_WITH_REGEXstatic java.util.regex.PatternURI_PARAM_WITH_REGEX_PATTERNstatic java.lang.StringURI_PARAM_WITHOUT_REGEXstatic java.util.regex.PatternURI_PARAM_WITHOUT_REGEX_PATTERNstatic java.util.regex.PatternURI_TEMPLATE_PATTERNA regex pattern that searches for a URI template parameter in the form of {*}static java.lang.StringURI_TEMPLATE_REPLACE_PATTERN
-
Constructor Summary
Constructors Constructor Description PathHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetEncodedPathInfo(java.lang.String path, java.lang.String contextPath)static java.lang.StringrecoverEnclosedCurlyBraces(java.lang.String str)static java.lang.StringreplaceEnclosedCurlyBraces(java.lang.String str)
-
-
-
Field Detail
-
URI_PARAM_NAME_REGEX
public static final java.lang.String URI_PARAM_NAME_REGEX
- See Also:
- Constant Field Values
-
URI_PARAM_REGEX_REGEX
public static final java.lang.String URI_PARAM_REGEX_REGEX
- See Also:
- Constant Field Values
-
URI_PARAM_REGEX
public static final java.lang.String URI_PARAM_REGEX
- See Also:
- Constant Field Values
-
URI_PARAM_WITH_REGEX
public static final java.lang.String URI_PARAM_WITH_REGEX
- See Also:
- Constant Field Values
-
URI_PARAM_WITHOUT_REGEX
public static final java.lang.String URI_PARAM_WITHOUT_REGEX
- See Also:
- Constant Field Values
-
URI_PARAM_PATTERN
public static final java.util.regex.Pattern URI_PARAM_PATTERN
-
URI_PARAM_WITH_REGEX_PATTERN
public static final java.util.regex.Pattern URI_PARAM_WITH_REGEX_PATTERN
-
URI_PARAM_WITHOUT_REGEX_PATTERN
public static final java.util.regex.Pattern URI_PARAM_WITHOUT_REGEX_PATTERN
-
URI_TEMPLATE_PATTERN
public static final java.util.regex.Pattern URI_TEMPLATE_PATTERN
A regex pattern that searches for a URI template parameter in the form of {*}
-
URI_TEMPLATE_REPLACE_PATTERN
public static final java.lang.String URI_TEMPLATE_REPLACE_PATTERN
- See Also:
- Constant Field Values
-
openCurlyReplacement
public static final char openCurlyReplacement
- See Also:
- Constant Field Values
-
closeCurlyReplacement
public static final char closeCurlyReplacement
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncodedPathInfo
public static java.lang.String getEncodedPathInfo(java.lang.String path, java.lang.String contextPath)
-
replaceEnclosedCurlyBraces
public static java.lang.String replaceEnclosedCurlyBraces(java.lang.String str)
-
recoverEnclosedCurlyBraces
public static java.lang.String recoverEnclosedCurlyBraces(java.lang.String str)
-
-