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/NetscapeDraftSpec.java $
32 package org.apache.http.impl.cookie;
40 import org.apache.http.cookie.ClientCookie;
41 import org.apache.http.cookie.Cookie;
42 import org.apache.http.cookie.CookieOrigin;
43 import org.apache.http.cookie.MalformedCookieException;
44 import org.apache.http.cookie.SM;
50 * Netscape cookie draft compliant cookie policy
99 * Parses the Set-Cookie value into an array of <tt>Cookie</tt>s.
101 * <p>Syntax of the Set-Cookie HTTP Response Header:</p>
108 * Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; secure
114 * character may be present in unquoted cookie value or unquoted
118 * The Cookie Spec.</a>
120 * @param header the <tt>Set-Cookie</tt> received from the server
121 * @return an array of <tt>Cookie</tt>s parsed from the Set-Cookie value
124 public List<Cookie> parse(final Header header, final CookieOrigin origin)
130 throw new IllegalArgumentException("Cookie origin may not be null");
152 public List<Header> formatCookies(final List<Cookie> cookies) {
160 buffer.append(SM.COOKIE);
163 Cookie cookie = cookies.get(i);
167 buffer.append(cookie.getName());
168 String s = cookie.getValue();