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/BasicPathHandler.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;
45 public void parse(final SetCookie cookie, String value)
47 if (cookie == null) {
48 throw new IllegalArgumentException("Cookie may not be null");
53 cookie.setPath(value);
56 public void validate(final Cookie cookie, final CookieOrigin origin)
58 if (!match(cookie, origin)) {
60 "Illegal path attribute \"" + cookie.getPath()
65 public boolean match(final Cookie cookie, final CookieOrigin origin) {
66 if (cookie == null) {
67 throw new IllegalArgumentException("Cookie may not be null");
70 throw new IllegalArgumentException("Cookie origin may not be null");
73 String topmostPath = cookie.getPath();