public class Util extends 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 String |
DEFAULT_ENCODING |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeXml(char[] arrayBuffer,
int length) |
static String |
escapeXml(String buffer)
Performs the following substring replacements
(to facilitate output to XML/HTML pages):
& -> &
< -> <
> -> >
" -> "
' -> '
See also OutSupport.writeEscapedXml().
|
static String |
getContentTypeAttribute(String input,
String name)
Get the value associated with a content-type attribute.
|
static int |
getScope(String scope)
Converts the given string description of a scope to the corresponding
PageContext constant.
|
static boolean |
isAbsoluteUrl(String url)
Returns true if our current URL is absolute,
false otherwise.
|
static String |
resolveUrl(String url,
String context,
javax.servlet.jsp.PageContext pageContext)
Utility methods
taken from org.apache.taglibs.standard.tag.common.core.UrlSupport
|
static String |
stripSession(String url)
Strips a servlet session ID from url.
|
public static final String DEFAULT_ENCODING
public static int getScope(String scope)
scope
- String description of scopepublic static boolean isAbsoluteUrl(String url)
public static String getContentTypeAttribute(String input, String name)
public static String stripSession(String url)
public static String escapeXml(String buffer)
public static String escapeXml(char[] arrayBuffer, int length)
Copyright © 2016 JBoss by Red Hat. All rights reserved.