Android
org.apache.http
public interface

org.apache.http.ReasonPhraseCatalog

org.apache.http.ReasonPhraseCatalog

Interface for obtaining reason phrases for HTTP status codes.

Summary

Public Methods

          String  getReason(int status, Locale loc)
Obtains the reason phrase for a status code.

Details

Public Methods

public String getReason(int status, Locale loc)

Obtains the reason phrase for a status code. The optional context allows for catalogs that detect the language for the reason phrase.

Parameters

status the status code, in the range 100-599
loc the preferred locale for the reason phrase

Returns

  • the reason phrase, or null if unknown
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56