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/impl/cookie/RFC2109DomainHandler.java $
31 package org.apache.http.impl.cookie;
35 import org.apache.http.cookie.Cookie;
36 import org.apache.http.cookie.CookieAttributeHandler;
37 import org.apache.http.cookie.CookieOrigin;
38 import org.apache.http.cookie.MalformedCookieException;
39 import org.apache.http.cookie.SetCookie;
47 public void parse(final SetCookie cookie, final String value)
49 if (cookie == null) {
50 throw new IllegalArgumentException("Cookie may not be null");
58 cookie.setDomain(value);
61 public void validate(final Cookie cookie, final CookieOrigin origin)
63 if (cookie == null) {
64 throw new IllegalArgumentException("Cookie may not be null");
67 throw new IllegalArgumentException("Cookie origin may not be null");
70 String domain = cookie.getDomain();
72 throw new MalformedCookieException("Cookie domain may not be null");
111 public boolean match(final Cookie cookie, final CookieOrigin origin) {
112 if (cookie == null) {
113 throw new IllegalArgumentException("Cookie may not be null");
116 throw new IllegalArgumentException("Cookie origin may not be null");
119 String domain = cookie.getDomain();