Package org.apache.http.impl
Class EnglishReasonPhraseCatalog
java.lang.Object
org.apache.http.impl.EnglishReasonPhraseCatalog
- All Implemented Interfaces:
ReasonPhraseCatalog
public class EnglishReasonPhraseCatalog extends Object implements 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.
- Version:
- $Revision: 505744 $
- Author:
- Unascribed, Mike Bowler, Jeff Dever
-
Field Summary
Fields Modifier and Type Field Description static EnglishReasonPhraseCatalogINSTANCEThe default instance of this catalog. -
Constructor Summary
Constructors Modifier Constructor Description protectedEnglishReasonPhraseCatalog()Restricted default constructor, for derived classes. -
Method Summary
-
Field Details
-
INSTANCE
The default instance of this catalog. This catalog is thread safe, so there typically is no need to create other instances.
-
-
Constructor Details
-
EnglishReasonPhraseCatalog
protected EnglishReasonPhraseCatalog()Restricted default constructor, for derived classes. If you need an instance of this class, useINSTANCE.
-
-
Method Details
-
getReason
Obtains the reason phrase for a status code.- Specified by:
getReasonin interfaceReasonPhraseCatalog- Parameters:
status- the status code, in the range 100-599loc- ignored- Returns:
- the reason phrase, or
null
-