|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.util.http.HttpMessages
public class HttpMessages
Handle (internationalized) HTTP messages.
Method Summary | |
---|---|
static String |
filter(String message)
Filter the specified message string for characters that are sensitive in HTML. |
static HttpMessages |
getInstance(Locale locale)
|
String |
getMessage(int status)
Get the status string associated with a status code. |
static boolean |
isSafeInHttpHeader(String msg)
Is the provided message safe to use in an HTTP header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getMessage(int status)
public static HttpMessages getInstance(Locale locale)
public static String filter(String message)
message
- The message string to be filteredpublic static boolean isSafeInHttpHeader(String msg)
msg
- The message to test
true
if the message is safe to use in an HTTP
header else false
|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |