Package org.jboss.resteasy.util
Class StringContextReplacement
- java.lang.Object
-
- org.jboss.resteasy.util.StringContextReplacement
-
public class StringContextReplacement extends java.lang.Object
Utility to replace predefined expressions within a string with values from the HTTP request; ${basepath} - UriInfo.getBaseUri().getRawPath() ${absolutepath} - UriInfo.getAbsolutePath().getRawPath() ${absoluteuri} - UriInfo.getAbsolutePath().toString() ${baseuri} - UriInfo.getBaseUri().toString() ${contextpath} - HttpServletRequest.getContextPath()- Version:
- $Revision: 1 $
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.Pattern
absolutepath
private static java.util.regex.Pattern
absoluteUri
private static java.util.regex.Pattern
basepath
private static java.util.regex.Pattern
baseUri
private static java.util.regex.Pattern
contextPath
-
Constructor Summary
Constructors Constructor Description StringContextReplacement()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
replace(java.lang.String original)
Utility to replace predefined expressions within a string with values from the HTTP request;
-
-
-
Field Detail
-
basepath
private static final java.util.regex.Pattern basepath
-
absolutepath
private static final java.util.regex.Pattern absolutepath
-
absoluteUri
private static final java.util.regex.Pattern absoluteUri
-
baseUri
private static final java.util.regex.Pattern baseUri
-
contextPath
private static final java.util.regex.Pattern contextPath
-
-
Method Detail
-
replace
public static java.lang.String replace(java.lang.String original)
Utility to replace predefined expressions within a string with values from the HTTP request; ${basepath} - UriInfo.getBaseUri().getRawPath() ${absolutepath} - UriInfo.getAbsolutePath().getRawPath() ${absoluteuri} - UriInfo.getAbsolutePath().toString() ${baseuri} - UriInfo.getBaseUri().toString() ${contextpath} - HttpServletRequest.getContextPath()- Parameters:
original
-- Returns:
-
-