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/impl/cookie/BestMatchSpec.java $
32 package org.apache.http.impl.cookie;
38 import org.apache.http.cookie.Cookie;
39 import org.apache.http.cookie.CookieOrigin;
40 import org.apache.http.cookie.CookieSpec;
41 import org.apache.http.cookie.MalformedCookieException;
44 * 'Meta' cookie specification that selects a cookie policy depending
45 * on the format of the cookie(s)
100 public List<Cookie> parse(
107 throw new IllegalArgumentException("Cookie origin may not be null");
123 // Do we have a cookie with a version attribute?
137 final Cookie cookie,
139 if (cookie == null) {
140 throw new IllegalArgumentException("Cookie may not be null");
143 throw new IllegalArgumentException("Cookie origin may not be null");
145 if (cookie.getVersion() > 0) {
146 getStrict().validate(cookie, origin);
148 getCompat().validate(cookie, origin);
152 public boolean match(final Cookie cookie, final CookieOrigin origin) {
153 if (cookie == null) {
154 throw new IllegalArgumentException("Cookie may not be null");
157 throw new IllegalArgumentException("Cookie origin may not be null");
159 if (cookie.getVersion() > 0) {
160 return getStrict().match(cookie, origin);
162 return getCompat().match(cookie, origin);
166 public List<Header> formatCookies(final List<Cookie> cookies) {
168 throw new IllegalArgumentException("List of cookie may not be null");
171 for (Cookie cookie: cookies) {
172 if (cookie.getVersion() < version) {
173 version = cookie.getVersion();