public class Util
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Util.ImportResponseWrapper
Wraps responses to allow us to retrieve results as Strings.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ENCODING |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and 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)
public static java.lang.String getContentTypeAttribute(java.lang.String input, java.lang.String name)
public static java.lang.String stripSession(java.lang.String url)
public static java.lang.String escapeXml(java.lang.String buffer)
public 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
JspException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.