public class HttpMessages
extends java.lang.Object
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 HttpMessages |
getInstance(java.util.Locale locale) |
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.
|
public java.lang.String getMessage(int status)
public static HttpMessages getInstance(java.util.Locale locale)
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-2015 Apache Software Foundation. All Rights Reserved.