org.apache.tomcat.util.http
public class HttpMessages extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
Constructor and Description |
---|
HttpMessages() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
filter(java.lang.String message)
Filter the specified message string for characters that are sensitive
in HTML.
|
static java.lang.String |
getMessage(int status)
Get the status string associated with a status code.
|
static boolean |
isSafeInHttpHeader(java.lang.String msg)
Is the provided message safe to use in an HTTP header.
|
protected static StringManager sm
public static java.lang.String getMessage(int status)
public static java.lang.String filter(java.lang.String message)
message
- The message string to be filteredpublic static boolean isSafeInHttpHeader(java.lang.String msg)
msg
- The message to testtrue
if the message is safe to use in an HTTP
header else false
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.