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/BasicDomainHandler.java $
31 package org.apache.http.impl.cookie;
33 import org.apache.http.cookie.Cookie;
34 import org.apache.http.cookie.CookieAttributeHandler;
35 import org.apache.http.cookie.CookieOrigin;
36 import org.apache.http.cookie.MalformedCookieException;
37 import org.apache.http.cookie.SetCookie;
51 public void parse(final SetCookie cookie, final String value)
53 if (cookie == null) {
54 throw new IllegalArgumentException("Cookie may not be null");
62 cookie.setDomain(value);
65 public void validate(final Cookie cookie, final CookieOrigin origin)
67 if (cookie == null) {
68 throw new IllegalArgumentException("Cookie may not be null");
71 throw new IllegalArgumentException("Cookie origin may not be null");
76 // request-host and domain must be identical for the cookie to sent
79 String domain = cookie.getDomain();
81 throw new MalformedCookieException("Cookie domain may not be null");
107 public boolean match(final Cookie cookie, final CookieOrigin origin) {
108 if (cookie == null) {
109 throw new IllegalArgumentException("Cookie may not be null");
112 throw new IllegalArgumentException("Cookie origin may not be null");
115 String domain = cookie.getDomain();