public class

RFC2109Spec

extends CookieSpecBase
java.lang.Object
   ↳ org.apache.http.impl.cookie.AbstractCookieSpec
     ↳ org.apache.http.impl.cookie.CookieSpecBase
       ↳ org.apache.http.impl.cookie.RFC2109Spec
Known Direct Subclasses

Class Overview

RFC 2109 compliant cookie policy

Summary

Public Constructors
RFC2109Spec(String[] datepatterns, boolean oneHeader)
Default constructor
RFC2109Spec()
Default constructor
Public Methods
List<Header> formatCookies(List<Cookie> cookies)
int getVersion()
Header getVersionHeader()
List<Cookie> parse(Header header, CookieOrigin origin)
void validate(Cookie cookie, CookieOrigin origin)
Protected Methods
void formatCookieAsVer(CharArrayBuffer buffer, Cookie cookie, int version)
Return a string suitable for sending in a "Cookie" header as defined in RFC 2109 for backward compatibility with cookie version 0
void formatParamAsVer(CharArrayBuffer buffer, String name, String value, int version)
Return a name/value string suitable for sending in a "Cookie" header as defined in RFC 2109 for backward compatibility with cookie version 0
[Expand]
Inherited Methods
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 RFC2109Spec (String[] datepatterns, boolean oneHeader)

Default constructor

public RFC2109Spec ()

Default constructor

Public Methods

public List<Header> formatCookies (List<Cookie> cookies)

public int getVersion ()

public Header getVersionHeader ()

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

public void validate (Cookie cookie, CookieOrigin origin)

Protected Methods

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

Return a string suitable for sending in a "Cookie" header as defined in RFC 2109 for backward compatibility with cookie version 0

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

protected void formatParamAsVer (CharArrayBuffer buffer, String name, String value, int version)

Return a name/value string suitable for sending in a "Cookie" header as defined in RFC 2109 for backward compatibility with cookie version 0

Parameters
buffer The char array buffer to use for output
name The cookie name
value The cookie value
version The cookie version