@NotThreadSafe public class RFC2965SpecHC4 extends RFC2109SpecHC4
CookieSpec implementation.| Constructor and Description |
|---|
RFC2965SpecHC4()
Default constructor
|
RFC2965SpecHC4(java.lang.String[] datepatterns,
boolean oneHeader) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
formatCookieAsVer(org.apache.http.util.CharArrayBuffer buffer,
org.apache.http.cookie.Cookie cookie,
int version)
Adds valid Port attribute value, e.g.
|
int |
getVersion() |
org.apache.http.Header |
getVersionHeader() |
boolean |
match(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin) |
java.util.List<org.apache.http.cookie.Cookie> |
parse(org.apache.http.Header header,
org.apache.http.cookie.CookieOrigin origin) |
protected java.util.List<org.apache.http.cookie.Cookie> |
parse(org.apache.http.HeaderElement[] elems,
org.apache.http.cookie.CookieOrigin origin) |
java.lang.String |
toString() |
void |
validate(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin) |
formatCookies, formatParamAsVergetDefaultDomain, getDefaultPathfindAttribHandler, getAttribHandler, getAttribHandlers, registerAttribHandlerpublic RFC2965SpecHC4()
public RFC2965SpecHC4(java.lang.String[] datepatterns,
boolean oneHeader)
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
parse in interface org.apache.http.cookie.CookieSpecparse in class RFC2109SpecHC4org.apache.http.cookie.MalformedCookieExceptionprotected java.util.List<org.apache.http.cookie.Cookie> parse(org.apache.http.HeaderElement[] elems,
org.apache.http.cookie.CookieOrigin origin)
throws org.apache.http.cookie.MalformedCookieException
parse in class CookieSpecBaseHC4org.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 RFC2109SpecHC4org.apache.http.cookie.MalformedCookieExceptionpublic boolean match(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin)
match in interface org.apache.http.cookie.CookieSpecmatch in class CookieSpecBaseHC4protected void formatCookieAsVer(org.apache.http.util.CharArrayBuffer buffer,
org.apache.http.cookie.Cookie cookie,
int version)
formatCookieAsVer in class RFC2109SpecHC4buffer - The char array buffer to use for outputcookie - The Cookie to be formatted as stringversion - The version to use.public int getVersion()
getVersion in interface org.apache.http.cookie.CookieSpecgetVersion in class RFC2109SpecHC4public org.apache.http.Header getVersionHeader()
getVersionHeader in interface org.apache.http.cookie.CookieSpecgetVersionHeader in class RFC2109SpecHC4public java.lang.String toString()
toString in class RFC2109SpecHC4Copyright © 1999-2015 The Apache Software Foundation. All rights reserved.