|
||||||||||
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
public class RFC2109Spec
RFC 2109 compliant cookie policy
Constructor Summary | |
---|---|
RFC2109Spec()
Default constructor |
|
RFC2109Spec(java.lang.String[] datepatterns,
boolean oneHeader)
Default constructor |
Method Summary | |
---|---|
org.apache.http.Header[] |
formatCookies(Cookie[] cookies)
Create "Cookie" headers for an array of Cookies. |
Cookie[] |
parse(org.apache.http.Header header,
CookieOrigin origin)
Parse the "Set-Cookie" Header into an array of Cookies. |
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.CookieSpecBase |
---|
getDefaultDomain, getDefaultPath, match, parse |
Methods inherited from class org.apache.http.impl.cookie.AbstractCookieSpec |
---|
findAttribHandler, getAttribHandler, getAttribHandlerIterator, registerAttribHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RFC2109Spec(java.lang.String[] datepatterns, boolean oneHeader)
public RFC2109Spec()
Method Detail |
---|
public Cookie[] parse(org.apache.http.Header header, CookieOrigin origin) throws MalformedCookieException
CookieSpec
This method will not perform the validation of the resultant
Cookie
s
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)
public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieSpec
validate
in interface CookieSpec
validate
in class CookieSpecBase
cookie
- the Cookie to validateorigin
- details of the cookie origin
MalformedCookieException
- if the cookie is invalidpublic org.apache.http.Header[] formatCookies(Cookie[] cookies)
CookieSpec
cookies
- the Cookies format into a Cookie header
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |