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

Since: API Level 1

Default constructor

Public Methods

public void registerAttribHandler (String name, CookieAttributeHandler handler)

Since: API Level 1

Protected Methods

protected CookieAttributeHandler findAttribHandler (String name)

Since: 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)

Since: 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 ()

Since: API Level 1