@Contract(threading=IMMUTABLE) public class EnglishReasonPhraseCatalog extends Object implements ReasonPhraseCatalog
Modifier and Type | Field and Description |
---|---|
static EnglishReasonPhraseCatalog |
INSTANCE
The default instance of this catalog.
|
private static String[][] |
REASON_PHRASES
Reason phrases lookup table.
|
Modifier | Constructor and Description |
---|---|
protected |
EnglishReasonPhraseCatalog()
Restricted default constructor, for derived classes.
|
Modifier and Type | Method and Description |
---|---|
String |
getReason(int status,
Locale loc)
Obtains the reason phrase for a status code.
|
private static void |
setReason(int status,
String reason)
Stores the given reason phrase, by status code.
|
public static final EnglishReasonPhraseCatalog INSTANCE
private static final String[][] REASON_PHRASES
protected EnglishReasonPhraseCatalog()
INSTANCE
.public String getReason(int status, Locale loc)
getReason
in interface ReasonPhraseCatalog
status
- the status code, in the range 100-599loc
- ignorednull
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses