public class HttpMessages extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
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 testtrue
if the message is safe to use in an HTTP
header else false
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.