English | Site Directory

Android - An Open Handset Alliance Project

org.apache.http.impl.cookie
public abstract class

org.apache.http.impl.cookie.AbstractCookieSpec

java.lang.Object
org.apache.http.impl.cookie.AbstractCookieSpec CookieSpec

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

Known Direct Subclasses
Known Indirect Subclasses

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.
        Iterator  getAttribHandlerIterator()
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.cookie.CookieSpec

Details

Public Constructors

public AbstractCookieSpec()

Default constructor

Public Methods

public void registerAttribHandler(String name, CookieAttributeHandler handler)

Protected Methods

protected CookieAttributeHandler findAttribHandler(String name)

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)

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

Build m5-rc15i - 10 Jun 2008 13:54