Skip to content

Most visited

Recently visited

navigation

EnglishReasonPhraseCatalog | Android Developers

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

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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.