@NotThreadSafe public class RFC2965Spec extends RFC2109Spec
CookieSpec implementation.| 构造器和说明 |
|---|
RFC2965Spec()
Default constructor
|
RFC2965Spec(java.lang.String[] datepatterns,
boolean oneHeader) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
formatCookieAsVer(CharArrayBuffer buffer,
Cookie cookie,
int version)
Adds valid Port attribute value, e.g. "8000,8001,8002"
|
int |
getVersion()
Returns version of the state management this cookie specification
conforms to.
|
Header |
getVersionHeader()
Returns a request header identifying what version of the state management
specification is understood.
|
boolean |
match(Cookie cookie,
CookieOrigin origin)
Determines if a Cookie matches the target location.
|
java.util.List<Cookie> |
parse(Header header,
CookieOrigin origin)
Parse the "Set-Cookie" Header into an array of Cookies.
|
protected java.util.List<Cookie> |
parse(HeaderElement[] elems,
CookieOrigin origin) |
java.lang.String |
toString() |
void |
validate(Cookie cookie,
CookieOrigin origin)
Validate the cookie according to validation rules defined by the
cookie specification.
|
formatCookies, formatParamAsVergetDefaultDomain, getDefaultPathfindAttribHandler, getAttribHandler, getAttribHandlers, registerAttribHandlerpublic RFC2965Spec()
public RFC2965Spec(java.lang.String[] datepatterns,
boolean oneHeader)
public java.util.List<Cookie> parse(Header header, CookieOrigin origin) throws MalformedCookieException
CookieSpecThis method will not perform the validation of the resultant
Cookies
parse 在接口中 CookieSpecparse 在类中 RFC2109Specheader - the Set-Cookie received from the serverorigin - details of the cookie originMalformedCookieException - if an exception occurs during parsingCookieSpec.validate(depends.org.apache.http.cookie.Cookie, depends.org.apache.http.cookie.CookieOrigin)protected java.util.List<Cookie> parse(HeaderElement[] elems, CookieOrigin origin) throws MalformedCookieException
parse 在类中 CookieSpecBaseMalformedCookieExceptionpublic void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieSpecvalidate 在接口中 CookieSpecvalidate 在类中 RFC2109Speccookie - the Cookie to validateorigin - details of the cookie originMalformedCookieException - if the cookie is invalidpublic boolean match(Cookie cookie, CookieOrigin origin)
CookieSpecmatch 在接口中 CookieSpecmatch 在类中 CookieSpecBasecookie - the Cookie to be matchedorigin - the target to test againstprotected void formatCookieAsVer(CharArrayBuffer buffer, Cookie cookie, int version)
formatCookieAsVer 在类中 RFC2109Specbuffer - The char array buffer to use for outputcookie - The Cookie to be formatted as stringversion - The version to use.public int getVersion()
CookieSpecgetVersion 在接口中 CookieSpecgetVersion 在类中 RFC2109Specpublic Header getVersionHeader()
CookieSpecnull if the cookie
specification does not support Cookie2 header.getVersionHeader 在接口中 CookieSpecgetVersionHeader 在类中 RFC2109Specpublic java.lang.String toString()
toString 在类中 RFC2109Spec