public class Util
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Util.ImportResponseWrapper |
Wraps responses to allow us to retrieve results as Strings.
|
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
DEFAULT_ENCODING |
Constructor | Description |
---|---|
Util() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
escapeXml(char[] arrayBuffer,
int length) |
|
static java.lang.String |
escapeXml(java.lang.String buffer) |
Performs the following substring replacements
(to facilitate output to XML/HTML pages):
& -> &
< -> <
> -> >
" -> "
' -> '
See also OutSupport.writeEscapedXml().
|
static java.lang.String |
getContentTypeAttribute(java.lang.String input,
java.lang.String name) |
Get the value associated with a content-type attribute.
|
static int |
getScope(java.lang.String scope) |
Converts the given string description of a scope to the corresponding
PageContext constant.
|
static boolean |
isAbsoluteUrl(java.lang.String url) |
Returns true if our current URL is absolute,
false otherwise.
|
static java.lang.String |
resolveUrl(java.lang.String url,
java.lang.String context,
PageContext pageContext) |
Utility methods
taken from org.apache.taglibs.standard.tag.common.core.UrlSupport
|
static java.lang.String |
stripSession(java.lang.String url) |
Strips a servlet session ID from url.
|
public static final java.lang.String DEFAULT_ENCODING
public static int getScope(java.lang.String scope)
scope
- String description of scopepublic static boolean isAbsoluteUrl(java.lang.String url)
url
- The URLpublic static java.lang.String getContentTypeAttribute(java.lang.String input, java.lang.String name)
input
- The attribute stringname
- The attribute namepublic static java.lang.String stripSession(java.lang.String url)
url
- The URLpublic static java.lang.String escapeXml(java.lang.String buffer)
buffer
- Data to escapepublic static java.lang.String escapeXml(char[] arrayBuffer, int length)
public static java.lang.String resolveUrl(java.lang.String url, java.lang.String context, PageContext pageContext) throws JspException
url
- The URLcontext
- The contextpageContext
- The page contextJspException
- If the URL doesn't start with '/'Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.