| Modifier and Type | Field and Description |
|---|---|
| public static final EnglishReasonPhraseCatalog | INSTANCE
The default instance of this catalog. |
| private static final String[][] | REASON_PHRASES
Reason phrases lookup table. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the reason phrase, ornullthe status code, in the range 100-599 status, final Locale ignored loc)Implements org. |
| private static void |
| INSTANCE | back to summary |
|---|---|
| public static final EnglishReasonPhraseCatalog INSTANCE The default instance of this catalog. This catalog is thread safe, so there typically is no need to create other instances. | |
| REASON_PHRASES | back to summary |
|---|---|
| private static final String[][] REASON_PHRASES Reason phrases lookup table. | |
| EnglishReasonPhraseCatalog | back to summary |
|---|---|
| protected EnglishReasonPhraseCatalog() Restricted default constructor, for derived classes.
If you need an instance of this class, use | |
| getReason | back to summary |
|---|---|
| public String getReason(final int status, final Locale loc) Implements org. Obtains the reason phrase for a status code. | |
| setReason | back to summary |
|---|---|
| private static void setReason(final int status, final String reason) Stores the given reason phrase, by status code. Helper method to initialize the static lookup table.
| |