Package org.jboss.resteasy.util
Class StringContextReplacement
java.lang.Object
org.jboss.resteasy.util.StringContextReplacement
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 Details
-
basepath
-
absolutepath
-
absoluteUri
-
baseUri
-
contextPath
-
-
Constructor Details
-
StringContextReplacement
public StringContextReplacement()
-
-
Method Details
-
replace
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:
-