Skip to content

Most visited

Recently visited

navigation

AbstractCookieSpec | Android Developers

to top
Android APIs
public abstract class

AbstractCookieSpec

extends Object
implements CookieSpec
java.lang.Object
   ↳ org.apache.http.impl.cookie.AbstractCookieSpec
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Abstract cookie specification which can delegate the job of parsing, validation or matching cookie attributes to a number of arbitrary CookieAttributeHandlers.

Summary

Public Constructors
AbstractCookieSpec()
Default constructor
Public Methods
void registerAttribHandler(String name, CookieAttributeHandler handler)
Protected Methods
CookieAttributeHandler findAttribHandler(String name)
Finds an attribute handler CookieAttributeHandler for the given attribute.
CookieAttributeHandler getAttribHandler(String name)
Gets attribute handler CookieAttributeHandler for the given attribute.
Collection<CookieAttributeHandler> getAttribHandlers()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.cookie.CookieSpec

Public Constructors

public AbstractCookieSpec ()

Added in API level 1

Default constructor

Public Methods

public void registerAttribHandler (String name, CookieAttributeHandler handler)

Added in API level 1

Protected Methods

protected CookieAttributeHandler findAttribHandler (String name)

Added in API level 1

Finds an attribute handler CookieAttributeHandler for the given attribute. Returns null if no attribute handler is found for the specified attribute.

Parameters
name attribute name. e.g. Domain, Path, etc.
Returns
  • an attribute handler or null

protected CookieAttributeHandler getAttribHandler (String name)

Added in API level 1

Gets attribute handler CookieAttributeHandler for the given attribute.

Parameters
name attribute name. e.g. Domain, Path, etc.
Throws
IllegalStateException if handler not found for the specified attribute.

protected Collection<CookieAttributeHandler> getAttribHandlers ()

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.