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/RFC2109VersionHandler.java $
31 package org.apache.http.impl.cookie;
33 import org.apache.http.cookie.Cookie;
34 import org.apache.http.cookie.CookieOrigin;
35 import org.apache.http.cookie.MalformedCookieException;
36 import org.apache.http.cookie.SetCookie;
44 public void parse(final SetCookie cookie, final String value)
46 if (cookie == null) {
47 throw new IllegalArgumentException("Cookie may not be null");
56 cookie.setVersion(Integer.parseInt(value));
64 public void validate(final Cookie cookie, final CookieOrigin origin)
66 if (cookie == null) {
67 throw new IllegalArgumentException("Cookie may not be null");
69 if (cookie.getVersion() < 0) {
70 throw new MalformedCookieException("Cookie version may not be negative");