Home | History | Annotate | Download | only in cookie

Lines Matching defs: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
61 * Returns version of the state management this cookie specification
69 * Parse the <tt>"Set-Cookie"</tt> Header into an array of Cookies.
72 * {@link Cookie}s</p>
76 * @param header the <tt>Set-Cookie</tt> received from the server
77 * @param origin details of the cookie origin
78 * @return an array of <tt>Cookie</tt>s parsed from the header
81 List<Cookie> parse(Header header, CookieOrigin origin) throws MalformedCookieException;
84 * Validate the cookie according to validation rules defined by the
85 * cookie specification.
87 * @param cookie the Cookie to validate
88 * @param origin details of the cookie origin
89 * @throws MalformedCookieException if the cookie is invalid
91 void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException;
94 * Determines if a Cookie matches the target location.
96 * @param cookie the Cookie to be matched
99 * @return <tt>true</tt> if the cookie should be submitted with a request
102 boolean match(Cookie cookie, CookieOrigin origin);
105 * Create <tt>"Cookie"</tt> headers for an array of Cookies.
107 * @param cookies the Cookies format into a Cookie header
111 List<Header> formatCookies(List<Cookie> cookies);
115 * specification is understood. May be <code>null</code> if the cookie