| java.lang.Object org.apache.http.impl.EnglishReasonPhraseCatalog
EnglishReasonPhraseCatalog | public class EnglishReasonPhraseCatalog implements ReasonPhraseCatalog(Code) | | 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.
author: Unascribed author: Mike Bowler author: Jeff Dever version: $Revision: 505744 $ |
Method Summary | |
public String | getReason(int status, Locale loc) Obtains the reason phrase for a status code. |
INSTANCE | final public static EnglishReasonPhraseCatalog INSTANCE(Code) | | The default instance of this catalog.
This catalog is thread safe, so there typically
is no need to create other instances.
|
EnglishReasonPhraseCatalog | protected EnglishReasonPhraseCatalog()(Code) | | Restricted default constructor, for derived classes.
If you need an instance of this class, use
EnglishReasonPhraseCatalog.INSTANCE INSTANCE .
|
getReason | public String getReason(int status, Locale loc)(Code) | | Obtains the reason phrase for a status code.
Parameters: status - the status code, in the range 100-599 Parameters: loc - ignored the reason phrase, or null |
|
|