public class ResponseUtils extends 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 String |
encodeURL(String url)
URLencodes a string assuming the character encoding is UTF-8.
|
static String |
encodeURL(String url,
String enc)
Use the new URLEncoder.encode() method from Java 1.4 if available, else
use the old deprecated version.
|
static String |
filter(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 String filter(String value)
value - The string to be filtered and returnedpublic static String encodeURL(String url)
url - public static String encodeURL(String url, String enc)
enc - The character encoding the urlencode is performed on.Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.