|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.cookie.AbstractCookieSpec
org.apache.http.impl.cookie.CookieSpecBase
org.apache.http.impl.cookie.RFC2109Spec
org.apache.http.impl.cookie.RFC2965Spec
@NotThreadSafe public class RFC2965Spec
RFC 2965 compliant CookieSpec
implementation.
Constructor Summary | |
---|---|
RFC2965Spec()
Default constructor |
|
RFC2965Spec(String[] datepatterns,
boolean oneHeader)
|
Method Summary | |
---|---|
protected void |
formatCookieAsVer(CharArrayBuffer buffer,
Cookie cookie,
int version)
Adds valid Port attribute value, e.g. |
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. |
List<Cookie> |
parse(Header header,
CookieOrigin origin)
Parse the "Set-Cookie" Header into an array of Cookies. |
protected List<Cookie> |
parse(HeaderElement[] elems,
CookieOrigin origin)
|
String |
toString()
|
void |
validate(Cookie cookie,
CookieOrigin origin)
Validate the cookie according to validation rules defined by the cookie specification. |
Methods inherited from class org.apache.http.impl.cookie.RFC2109Spec |
---|
formatCookies, formatParamAsVer |
Methods inherited from class org.apache.http.impl.cookie.CookieSpecBase |
---|
getDefaultDomain, getDefaultPath |
Methods inherited from class org.apache.http.impl.cookie.AbstractCookieSpec |
---|
findAttribHandler, getAttribHandler, getAttribHandlers, registerAttribHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RFC2965Spec()
public RFC2965Spec(String[] datepatterns, boolean oneHeader)
Method Detail |
---|
public List<Cookie> parse(Header header, CookieOrigin origin) throws MalformedCookieException
CookieSpec
This method will not perform the validation of the resultant
Cookie
s
parse
in interface CookieSpec
parse
in class RFC2109Spec
header
- the Set-Cookie received from the serverorigin
- details of the cookie origin
MalformedCookieException
- if an exception occurs during parsingCookieSpec.validate(org.apache.http.cookie.Cookie, org.apache.http.cookie.CookieOrigin)
protected List<Cookie> parse(HeaderElement[] elems, CookieOrigin origin) throws MalformedCookieException
parse
in class CookieSpecBase
MalformedCookieException
public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieSpec
validate
in interface CookieSpec
validate
in class RFC2109Spec
cookie
- the Cookie to validateorigin
- details of the cookie origin
MalformedCookieException
- if the cookie is invalidpublic boolean match(Cookie cookie, CookieOrigin origin)
CookieSpec
match
in interface CookieSpec
match
in class CookieSpecBase
cookie
- the Cookie to be matchedorigin
- the target to test against
protected void formatCookieAsVer(CharArrayBuffer buffer, Cookie cookie, int version)
formatCookieAsVer
in class RFC2109Spec
buffer
- The char array buffer to use for outputcookie
- The Cookie
to be formatted as stringversion
- The version to use.public int getVersion()
CookieSpec
getVersion
in interface CookieSpec
getVersion
in class RFC2109Spec
public Header getVersionHeader()
CookieSpec
null
if the cookie
specification does not support Cookie2 header.
getVersionHeader
in interface CookieSpec
getVersionHeader
in class RFC2109Spec
public String toString()
toString
in class RFC2109Spec
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |