org.apache.http.impl
Class EnglishReasonPhraseCatalogHC4

java.lang.Object
  extended by org.apache.http.impl.EnglishReasonPhraseCatalogHC4
All Implemented Interfaces:
org.apache.http.ReasonPhraseCatalog

@Immutable
public class EnglishReasonPhraseCatalogHC4
extends java.lang.Object
implements org.apache.http.ReasonPhraseCatalog

English reason phrases for HTTP status codes. All status codes defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and RFC2518 (WebDAV) are supported.

Since:
4.0

Field Summary
static EnglishReasonPhraseCatalogHC4 INSTANCE
          The default instance of this catalog.
 
Constructor Summary
protected EnglishReasonPhraseCatalogHC4()
          Restricted default constructor, for derived classes.
 
Method Summary
 java.lang.String getReason(int status, java.util.Locale loc)
          Obtains the reason phrase for a status code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EnglishReasonPhraseCatalogHC4 INSTANCE
The default instance of this catalog. This catalog is thread safe, so there typically is no need to create other instances.

Constructor Detail

EnglishReasonPhraseCatalogHC4

protected EnglishReasonPhraseCatalogHC4()
Restricted default constructor, for derived classes. If you need an instance of this class, use INSTANCE.

Method Detail

getReason

public java.lang.String getReason(int status,
                                  java.util.Locale loc)
Obtains the reason phrase for a status code.

Specified by:
getReason in interface org.apache.http.ReasonPhraseCatalog
Parameters:
status - the status code, in the range 100-599
loc - ignored
Returns:
the reason phrase, or null