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

Also: HttpClient

Default constructor

Public Methods

public void registerAttribHandler (String name, CookieAttributeHandler handler)

Also: HttpClient

Protected Methods

protected CookieAttributeHandler findAttribHandler (String name)

Also: HttpClient

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)

Also: HttpClient

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

Also: HttpClient