public class Util extends Object
Utilities in support of tag-handler classes.
Modifier and Type | Field and Description |
---|---|
static int |
HIGHEST_SPECIAL |
static char[][] |
specialCharactersRepresentation |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
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 Enumeration |
getRequestLocales(HttpServletRequest request)
HttpServletRequest.getLocales() returns the server's default locale
if the request did not specify a preferred language.
|
static int |
getScope(String scope) |
static int |
getStyle(String style,
String errCode) |
static String |
URLEncode(String s,
String enc)
URL encodes a string, based on the supplied character encoding.
|
public static final int HIGHEST_SPECIAL
public static char[][] specialCharactersRepresentation
public static int getScope(String scope)
public static int getStyle(String style, String errCode) throws JspException
JspException
public static String escapeXml(String buffer)
public static String getContentTypeAttribute(String input, String name)
public static String URLEncode(String s, String enc)
s
- The String to be URL encoded.enc
- The character encodingpublic static Enumeration getRequestLocales(HttpServletRequest request)
Copyright © 2018 JBoss by Red Hat. All rights reserved.