public class StringContextReplacement extends Object
${basepath} - UriInfo.getBaseUri().getRawPath() ${absolutepath} - UriInfo.getAbsolutePath().getRawPath() ${absoluteuri} - UriInfo.getAbsolutePath().toString() ${baseuri} - UriInfo.getBaseUri().toString() ${contextpath} - HttpServletRequest.getContextPath()
Constructor and Description |
---|
StringContextReplacement() |
Modifier and Type | Method and Description |
---|---|
static String |
replace(String original)
Utility to replace predefined expressions within a string with values from the HTTP request;
|
public static String replace(String original)
${basepath} - UriInfo.getBaseUri().getRawPath() ${absolutepath} - UriInfo.getAbsolutePath().getRawPath() ${absoluteuri} - UriInfo.getAbsolutePath().toString() ${baseuri} - UriInfo.getBaseUri().toString() ${contextpath} - HttpServletRequest.getContextPath()
original
- original stringCopyright © 2019 JBoss by Red Hat. All rights reserved.