Lines Matching refs:cookies

47     // the in-memory representation of cookies
50 // the cookies are indexed by its domain and associated uri (if present)
106 * Get all cookies, which:
118 List<HttpCookie> cookies = new ArrayList<HttpCookie>();
123 getInternal1(cookies, domainIndex, uri.getHost(), secureLink);
125 getInternal2(cookies, uriIndex, getEffectiveURI(uri), secureLink);
130 return cookies;
134 * Get all cookies in cookie store, except those have expired
167 List<HttpCookie> cookies = uriIndex.get(uri);
168 if (cookies == null || cookies.size() == 0) {
169 // no cookies list or an empty list associated with
205 * Remove all cookies in this cookie store.
226 * one difference: It won't reject cookies when the 'H' part of the
231 * some sites, like yahoo.com do actually expect these cookies to be
233 * And should be used for 'old' style cookies (aka Netscape type of cookies)
277 private void getInternal1(List<HttpCookie> cookies, Map<String, List<HttpCookie>> cookieIndex,
279 // Use a separate list to handle cookies that need to be removed so
294 !cookies.contains(c)) {
295 cookies.add(c);
307 // Clear up the cookies that need to be removed
317 // @param cookies [OUT] contains the found cookies
321 private <T> void getInternal2(List<HttpCookie> cookies,
328 // check the list of cookies associated with this domain
338 !cookies.contains(ck))
339 cookies.add(ck);
361 List<HttpCookie> cookies = indexStore.get(index);
362 if (cookies != null) {
364 cookies.remove(cookie);
366 cookies.add(cookie);
368 cookies = new ArrayList<HttpCookie>();
369 cookies.add(cookie);
370 indexStore.put(index, cookies);