|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.util.ResponseUtils
public class ResponseUtils
General purpose utility methods related to generating a servlet response in the Struts controller framework.
Field Summary | |
---|---|
protected static MessageResources |
messages
The message resources for this package. |
Constructor Summary | |
---|---|
ResponseUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static MessageResources messages
Constructor Detail |
---|
public ResponseUtils()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |