@Immutable public class EnglishReasonPhraseCatalog extends java.lang.Object implements ReasonPhraseCatalog
Modifier and Type | Field and Description |
---|---|
static EnglishReasonPhraseCatalog |
INSTANCE
The default instance of this catalog.
|
Modifier | Constructor and Description |
---|---|
protected |
EnglishReasonPhraseCatalog()
Restricted default constructor, for derived classes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReason(int status,
java.util.Locale loc)
Obtains the reason phrase for a status code.
|
public static final EnglishReasonPhraseCatalog INSTANCE
protected EnglishReasonPhraseCatalog()
INSTANCE
.public java.lang.String getReason(int status, java.util.Locale loc)
getReason
in interface ReasonPhraseCatalog
status
- the status code, in the range 100-599loc
- ignorednull