public class HttpMessages
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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)
status - The HTTP status code to retrieve the message forpublic static HttpMessages getInstance(java.util.Locale locale)
public static boolean isSafeInHttpHeader(java.lang.String msg)
msg - The message to testtrue if the message is safe to use in an HTTP
header else falseCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.