org.jboss.resteasy.util
Class StringContextReplacement

java.lang.Object
  extended by 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 $
Author:
Bill Burke

Constructor Summary
StringContextReplacement()
           
 
Method Summary
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()

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringContextReplacement

public StringContextReplacement()
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:


Copyright © 2009. All Rights Reserved.