Home | History | Annotate | Download | only in cookie

Lines Matching refs:Cookie

2  * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/CookieSpec.java $
32 package org.apache.http.cookie;
39 * Defines the cookie management specification.
40 * <p>Cookie management specification must define
42 * <li> rules of parsing "Set-Cookie" header
44 * <li> formatting of "Cookie" header
56 * Returns version of the state management this cookie specification
64 * Parse the <tt>"Set-Cookie"</tt> Header into an array of Cookies.
67 * {@link Cookie}s</p>
71 * @param header the <tt>Set-Cookie</tt> received from the server
72 * @param origin details of the cookie origin
73 * @return an array of <tt>Cookie</tt>s parsed from the header
76 List<Cookie> parse(Header header, CookieOrigin origin) throws MalformedCookieException;
79 * Validate the cookie according to validation rules defined by the
80 * cookie specification.
82 * @param cookie the Cookie to validate
83 * @param origin details of the cookie origin
84 * @throws MalformedCookieException if the cookie is invalid
86 void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException;
89 * Determines if a Cookie matches the target location.
91 * @param cookie the Cookie to be matched
94 * @return <tt>true</tt> if the cookie should be submitted with a request
97 boolean match(Cookie cookie, CookieOrigin origin);
100 * Create <tt>"Cookie"</tt> headers for an array of Cookies.
102 * @param cookies the Cookies format into a Cookie header
106 List<Header> formatCookies(List<Cookie> cookies);
110 * specification is understood. May be <code>null</code> if the cookie