Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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

Added in 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 ()

Added in 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)

Added in 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