public class ResponseUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static MessageResources |
messages
The message resources for this package.
|
Constructor and Description |
---|
ResponseUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encodeURL(java.lang.String url)
URLencodes a string assuming the character encoding is UTF-8.
|
static java.lang.String |
encodeURL(java.lang.String url,
java.lang.String enc)
Use the new URLEncoder.encode() method from Java 1.4 if available, else
use the old deprecated version.
|
static java.lang.String |
filter(java.lang.String value)
Filter the specified string for characters that are senstive to HTML
interpreters, returning the string with these characters replaced by
the corresponding character entities.
|
protected static MessageResources messages
public static java.lang.String filter(java.lang.String value)
value
- The string to be filtered and returnedpublic static java.lang.String encodeURL(java.lang.String url)
url
- public static java.lang.String encodeURL(java.lang.String url, java.lang.String enc)
enc
- The character encoding the urlencode is performed on.Copyright © 2000–2019 Apache Software Foundation. All rights reserved.