|
||||||||||
| 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
@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
Cookies
parse in interface CookieSpecparse in class RFC2109Specheader - the Set-Cookie received from the serverorigin - details of the cookie origin
Cookies 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 CookieSpecBaseMalformedCookieException
public void validate(Cookie cookie,
CookieOrigin origin)
throws MalformedCookieException
CookieSpec
validate in interface CookieSpecvalidate in class RFC2109Speccookie - the Cookie to validateorigin - details of the cookie origin
MalformedCookieException - if the cookie is invalid
public boolean match(Cookie cookie,
CookieOrigin origin)
CookieSpec
match in interface CookieSpecmatch in class CookieSpecBasecookie - 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 RFC2109Specbuffer - 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 CookieSpecgetVersion in class RFC2109Specpublic org.apache.http.Header getVersionHeader()
CookieSpecnull if the cookie
specification does not support Cookie2 header.
getVersionHeader in interface CookieSpecgetVersionHeader in class RFC2109Specpublic String toString()
toString in class RFC2109Spec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||