public class


extends RFC2109Spec
   ↳ org.apache.http.impl.cookie.AbstractCookieSpec
     ↳ org.apache.http.impl.cookie.CookieSpecBase
       ↳ org.apache.http.impl.cookie.RFC2109Spec
         ↳ org.apache.http.impl.cookie.RFC2965Spec

Class Overview

RFC 2965 compliant CookieSpec implementation.


Public Constructors
Default constructor
RFC2965Spec(String[] datepatterns, boolean oneHeader)
Public Methods
int getVersion()
Header getVersionHeader()
boolean match(Cookie cookie, CookieOrigin origin)
List<Cookie> parse(Header header, CookieOrigin origin)
String toString()
void validate(Cookie cookie, CookieOrigin origin)
Protected Methods
void formatCookieAsVer(CharArrayBuffer buffer, Cookie cookie, int version)
Adds valid Port attribute value, e.g.
List<Cookie> parse(HeaderElement[] elems, CookieOrigin origin)
Inherited Methods
From class org.apache.http.impl.cookie.RFC2109Spec
From class org.apache.http.impl.cookie.CookieSpecBase
From class org.apache.http.impl.cookie.AbstractCookieSpec
From class java.lang.Object
From interface org.apache.http.cookie.CookieSpec

Public Constructors

public RFC2965Spec ()

Also: HttpClient

Default constructor

public RFC2965Spec (String[] datepatterns, boolean oneHeader)

Also: HttpClient

Public Methods

public int getVersion ()

Also: HttpClient

public Header getVersionHeader ()

Also: HttpClient

public boolean match (Cookie cookie, CookieOrigin origin)

Also: HttpClient

public List<Cookie> parse (Header header, CookieOrigin origin)

Also: HttpClient

public String toString ()

public void validate (Cookie cookie, CookieOrigin origin)

Also: HttpClient

Protected Methods

protected void formatCookieAsVer (CharArrayBuffer buffer, Cookie cookie, int version)

Also: HttpClient

Adds valid Port attribute value, e.g. "8000,8001,8002"

buffer The char array buffer to use for output
cookie The Cookie to be formatted as string
version The version to use.

protected List<Cookie> parse (HeaderElement[] elems, CookieOrigin origin)

Also: HttpClient