Package org.jboss.resteasy.util
Class StringContextReplacement
- java.lang.Object
-
- org.jboss.resteasy.util.StringContextReplacement
-
public class StringContextReplacement extends 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 $
- Author:
- Bill Burke
-
-
Constructor Summary
Constructors Constructor Description StringContextReplacement()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
replace(String original)
Utility to replace predefined expressions within a string with values from the HTTP request;
-
-
-
Method Detail
-
replace
public static String replace(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
- original string- Returns:
- string with replaced expression
-
-