1 31 32 package org.apache.commons.httpclient.cookie; 33 34 import org.apache.commons.httpclient.Header; 35 import org.apache.commons.httpclient.NameValuePair; 36 import org.apache.commons.httpclient.Cookie; 37 38 53 public interface CookieSpec { 54 55 56 String PATH_DELIM = "/"; 57 58 59 char PATH_DELIM_CHAR = PATH_DELIM.charAt(0); 60 61 74 Cookie[] parse(String host, int port, String path, boolean secure, 75 final String header) 76 throws MalformedCookieException, IllegalArgumentException ; 77 78 91 Cookie[] parse(String host, int port, String path, boolean secure, 92 final Header header) 93 throws MalformedCookieException, IllegalArgumentException ; 94 95 104 void parseAttribute(final NameValuePair attribute, final Cookie cookie) 105 throws MalformedCookieException, IllegalArgumentException ; 106 107 120 void validate(String host, int port, String path, boolean secure, 121 final Cookie cookie) 122 throws MalformedCookieException, IllegalArgumentException ; 123 124 136 boolean match(String host, int port, String path, boolean secure, 137 final Cookie cookie); 138 139 152 Cookie[] match(String host, int port, String path, boolean secure, 153 final Cookie cookies[]); 154 155 161 String formatCookie(Cookie cookie); 162 163 170 String formatCookies(Cookie[] cookies) throws IllegalArgumentException ; 171 172 179 Header formatCookieHeader(Cookie[] cookies) throws IllegalArgumentException ; 180 181 188 Header formatCookieHeader(Cookie cookie) throws IllegalArgumentException ; 189 190 } 191 | Popular Tags |