Searched refs:cookies (Results 1 – 6 of 6) sorted by relevance
/libcore/ojluni/src/main/java/java/net/ |
D | InMemoryCookieStore.java | 123 List<HttpCookie> cookies = new ArrayList<HttpCookie>(); in get() local 128 getInternal1(cookies, uriIndex, uri.getHost()); in get() 130 getInternal2(cookies, uriIndex, getEffectiveURI(uri)); in get() 135 return cookies; in get() 223 List<HttpCookie> cookies = uriIndex.get(uri); in remove() local 224 if (cookies != null) { in remove() 225 return cookies.remove(ck); in remove() 320 private void getInternal1(List<HttpCookie> cookies, Map<URI, List<HttpCookie>> cookieIndex, in getInternal1() argument 336 if (!cookies.contains(c)) { in getInternal1() 337 cookies.add(c); in getInternal1() [all …]
|
D | CookieManager.java | 212 List<HttpCookie> cookies = new java.util.ArrayList<HttpCookie>(); in get() local 246 cookies.add(cookie); in get() 249 cookies.add(cookie); in get() 254 if (cookies.isEmpty()) { in get() 259 List<String> cookieHeader = sortByPath(cookies); in get() 294 List<HttpCookie> cookies; in put() local 296 cookies = HttpCookie.parse(headerValue); in put() 299 cookies = java.util.Collections.emptyList(); in put() 304 for (HttpCookie cookie : cookies) { in put() 436 private List<String> sortByPath(List<HttpCookie> cookies) { in sortByPath() argument [all …]
|
D | HttpCookie.java | 221 List<HttpCookie> cookies = new java.util.ArrayList<>(); in parse() local 229 cookies.add(cookie); in parse() 238 cookies.add(cookie); in parse() 242 return cookies; in parse() 1195 List<String> cookies = new java.util.ArrayList<String>(); in splitMultiCookies() local 1204 cookies.add(header.substring(q, p)); in splitMultiCookies() 1209 cookies.add(header.substring(q)); in splitMultiCookies() 1211 return cookies; in splitMultiCookies()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | AbstractCookiesTest.java | 104 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testNetscapeResponse() local 105 assertEquals(1, cookies.size()); in testNetscapeResponse() 106 HttpCookie cookie = cookies.get(0); in testNetscapeResponse() 134 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2109Response() local 135 assertEquals(1, cookies.size()); in testRfc2109Response() 136 HttpCookie cookie = cookies.get(0); in testRfc2109Response() 167 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2965Response() local 168 assertEquals(1, cookies.size()); in testRfc2965Response() 169 HttpCookie cookie = cookies.get(0); in testRfc2965Response() 202 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testQuotedAttributeValues() local [all …]
|
D | CookiesMCompatibilityTest.java | 44 Map<String, List<String>> cookies = cm.get( in testCookiesWithoutLeadingPeriod() local 48 assertEquals(0, cookies.size()); in testCookiesWithoutLeadingPeriod() 58 Map<String, List<String>> cookies = cm.get( in testCookiesWithLeadingPeriod() local 62 List<String> cookieList = cookies.values().iterator().next(); in testCookiesWithLeadingPeriod()
|
D | CookiesTest.java | 44 Map<String, List<String>> cookies = cm.get( in testCookiesWithLeadingPeriod() local 48 List<String> cookieList = cookies.values().iterator().next(); in testCookiesWithLeadingPeriod()
|