| |
|
| java.lang.Object org.apache.tomcat.util.http.HttpMessages
HttpMessages | public class HttpMessages (Code) | | Handle (internationalized) HTTP messages.
author: James Duncan Davidson [duncan@eng.sun.com] author: James Todd [gonzo@eng.sun.com] author: Jason Hunter [jch@eng.sun.com] author: Harish Prabandham author: costin@eng.sun.com |
Method Summary | |
public static String | filter(String message) Filter the specified message string for characters that are sensitive
in HTML. | public static String | getMessage(int status) Get the status string associated with a status code. |
filter | public static String filter(String message)(Code) | | Filter the specified message string for characters that are sensitive
in HTML. This avoids potential attacks caused by including JavaScript
codes in the request URL that is often reported in error messages.
Parameters: message - The message string to be filtered |
getMessage | public static String getMessage(int status)(Code) | | Get the status string associated with a status code.
No I18N - return the messages defined in the HTTP spec.
( the user isn't supposed to see them, this is the last
thing to translate)
Common messages are cached.
|
|
|
|