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