@NotThreadSafe public class RFC2109SpecHC4 extends CookieSpecBaseHC4
CookieSpec implementation.
This is an older version of the official HTTP state management specification
superseded by RFC 2965.RFC2965SpecHC4| Constructor and Description |
|---|
RFC2109SpecHC4()
Default constructor
|
RFC2109SpecHC4(java.lang.String[] datepatterns,
boolean oneHeader)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
formatCookieAsVer(org.apache.http.util.CharArrayBuffer buffer,
org.apache.http.cookie.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
|
java.util.List<org.apache.http.Header> |
formatCookies(java.util.List<org.apache.http.cookie.Cookie> cookies) |
protected void |
formatParamAsVer(org.apache.http.util.CharArrayBuffer buffer,
java.lang.String name,
java.lang.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
|
int |
getVersion() |
org.apache.http.Header |
getVersionHeader() |
java.util.List<org.apache.http.cookie.Cookie> |
parse(org.apache.http.Header header,
org.apache.http.cookie.CookieOrigin origin) |
java.lang.String |
toString() |
void |
validate(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin) |
getDefaultDomain, getDefaultPath, match, parsefindAttribHandler, getAttribHandler, getAttribHandlers, registerAttribHandlerpublic RFC2109SpecHC4(java.lang.String[] datepatterns,
boolean oneHeader)
public RFC2109SpecHC4()
public java.util.List<org.apache.http.cookie.Cookie> parse(org.apache.http.Header header,
org.apache.http.cookie.CookieOrigin origin)
throws org.apache.http.cookie.MalformedCookieException
org.apache.http.cookie.MalformedCookieExceptionpublic void validate(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin)
throws org.apache.http.cookie.MalformedCookieException
validate in interface org.apache.http.cookie.CookieSpecvalidate in class CookieSpecBaseHC4org.apache.http.cookie.MalformedCookieExceptionpublic java.util.List<org.apache.http.Header> formatCookies(java.util.List<org.apache.http.cookie.Cookie> cookies)
protected void formatParamAsVer(org.apache.http.util.CharArrayBuffer buffer,
java.lang.String name,
java.lang.String value,
int version)
buffer - The char array buffer to use for outputname - The cookie namevalue - The cookie valueversion - The cookie versionprotected void formatCookieAsVer(org.apache.http.util.CharArrayBuffer buffer,
org.apache.http.cookie.Cookie cookie,
int version)
buffer - The char array buffer to use for outputcookie - The Cookie to be formatted as stringversion - The version to use.public int getVersion()
public org.apache.http.Header getVersionHeader()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.