Skip to content

Most visited

Recently visited

navigation

HttpContext | Android Developers

to top
Android APIs
Added in API level 1
public interface

HttpContext

org.apache.http.protocol.HttpContext
Known Indirect Subclasses

Class Overview

A context for executing a request. The context is used to tie together the request, the response, and optional application data. It is also used for internal data. Attribute names starting with the prefix "http." are reserved for internal data.

Summary

Constants
String RESERVED_PREFIX The prefix reserved for use by HTTP components.
Public Methods
abstract Object getAttribute(String id)
abstract Object removeAttribute(String id)
abstract void setAttribute(String id, Object obj)

Constants

public static final String RESERVED_PREFIX

Added in API level 1

The prefix reserved for use by HTTP components. "http."

Constant Value: "http."

Public Methods

public abstract Object getAttribute (String id)

Added in API level 1

public abstract Object removeAttribute (String id)

Added in API level 1

public abstract void setAttribute (String id, Object obj)

Added in API level 1

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.

Take a one-minute survey?
Help us improve Android tools and documentation.