|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.cookie.AbstractCookieSpec org.apache.http.impl.cookie.CookieSpecBase org.apache.http.impl.cookie.RFC2109Spec org.apache.http.impl.cookie.RFC2965Spec
@Obsolete @Contract(threading=SAFE) public class RFC2965Spec
RFC 2965 compliant CookieSpec
implementation.
Rendered obsolete by RFC6265StrictSpec
.
RFC6265StrictSpec
Constructor Summary | |
---|---|
RFC2965Spec()
Default constructor |
|
RFC2965Spec(String[] datepatterns,
boolean oneHeader)
|
Method Summary | |
---|---|
protected void |
formatCookieAsVer(org.apache.http.util.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. |
org.apache.http.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(org.apache.http.Header header,
CookieOrigin origin)
Parse the "Set-Cookie" Header into an array of Cookies. |
protected List<Cookie> |
parse(org.apache.http.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(org.apache.http.Header header, CookieOrigin origin) throws MalformedCookieException
CookieSpec
"Set-Cookie"
Header into an array of Cookies.
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
Cookie
s parsed from the header
MalformedCookieException
- if an exception occurs during parsingCookieSpec.validate(org.apache.http.cookie.Cookie, org.apache.http.cookie.CookieOrigin)
protected List<Cookie> parse(org.apache.http.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
true
if the cookie should be submitted with a request
with given attributes, false
otherwise.protected void formatCookieAsVer(org.apache.http.util.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 org.apache.http.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 |