to top
Android APIs
public class

EnglishReasonPhraseCatalog

extends Object
implements ReasonPhraseCatalog
java.lang.Object
   ↳ org.apache.http.impl.EnglishReasonPhraseCatalog

Class Overview

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.

Summary

Fields
public static final EnglishReasonPhraseCatalog INSTANCE The default instance of this catalog.
Protected Constructors
EnglishReasonPhraseCatalog()
Restricted default constructor, for derived classes.
Public Methods
String getReason(int status, Locale loc)
Obtains the reason phrase for a status code.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.ReasonPhraseCatalog

Fields

public static final EnglishReasonPhraseCatalog INSTANCE

Since: API Level 1

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

Protected Constructors

protected EnglishReasonPhraseCatalog ()

Since: API Level 1

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

Public Methods

public String getReason (int status, Locale loc)

Since: API Level 1

Obtains the reason phrase for a status code.

Parameters
status the status code, in the range 100-599
loc ignored
Returns
  • the reason phrase, or null