Home
last modified time | relevance | path

Searched refs:HttpCookie (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java21 import java.net.HttpCookie;
37 assertNotNull(new HttpCookie("harmony_6", "test,sem")); in test_HttpCookie_LString_LString()
38 assertNotNull(new HttpCookie("harmony_6", null)); in test_HttpCookie_LString_LString()
39 assertNotNull(new HttpCookie("harmony ", null)); in test_HttpCookie_LString_LString()
40 assertEquals("harmony", new HttpCookie("harmony ", null).getName()); in test_HttpCookie_LString_LString()
68 new HttpCookie(null, value); in test_HttpCookie_LString_LString()
75 new HttpCookie("\u007f", value); in test_HttpCookie_LString_LString()
81 HttpCookie cookie = new HttpCookie("harmony!", null); in test_HttpCookie_LString_LString()
84 cookie = new HttpCookie("harmon$y", null); in test_HttpCookie_LString_LString()
91 new HttpCookie(name, value); in constructHttpCookie()
[all …]
DCookiePolicyTest.java20 import java.net.HttpCookie;
34 HttpCookie cookie = new HttpCookie("Harmony_6", "ongoing"); in test_ShouldAccept_LURI_LHttpCookie()
/libcore/ojluni/src/main/java/java/net/
DInMemoryCookieStore.java66 private Map<URI, List<HttpCookie>> uriIndex = null;
91 public void add(URI uri, HttpCookie cookie) { in add()
117 public List<HttpCookie> get(URI uri) { in get()
123 List<HttpCookie> cookies = new ArrayList<HttpCookie>(); in get()
141 public List<HttpCookie> getCookies() { in getCookies()
143 List<HttpCookie> rt = new ArrayList<HttpCookie>(); in getCookies()
147 for (List<HttpCookie> list : uriIndex.values()) { in getCookies()
148 Iterator<HttpCookie> it = list.iterator(); in getCookies()
150 HttpCookie cookie = it.next(); in getCookies()
210 public boolean remove(URI uri, HttpCookie ck) { in remove()
[all …]
DCookiePolicy.java43 public boolean shouldAccept(URI uri, HttpCookie cookie) {
52 public boolean shouldAccept(URI uri, HttpCookie cookie) {
61 public boolean shouldAccept(URI uri, HttpCookie cookie) {
64 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost());
77 public boolean shouldAccept(URI uri, HttpCookie cookie); in shouldAccept()
DHttpCookie.java59 public final class HttpCookie implements Cloneable { class
163 public HttpCookie(String name, String value) { in HttpCookie() method in HttpCookie
167 private HttpCookie(String name, String value, String header) { in HttpCookie() method in HttpCookie
202 public static List<HttpCookie> parse(String header) { in parse()
210 private static List<HttpCookie> parse(String header, boolean retainHeader) { in parse()
221 List<HttpCookie> cookies = new java.util.ArrayList<>(); in parse()
227 HttpCookie cookie = parseInternal(header, retainHeader); in parse()
236 HttpCookie cookie = parseInternal(cookieStr, retainHeader); in parse()
748 if (!(obj instanceof HttpCookie)) in equals()
750 HttpCookie other = (HttpCookie)obj; in equals()
[all …]
DCookieStore.java67 public void add(URI uri, HttpCookie cookie); in add()
85 public List<HttpCookie> get(URI uri); in get()
94 public List<HttpCookie> getCookies(); in getCookies()
120 public boolean remove(URI uri, HttpCookie cookie); in remove()
DCookieManager.java212 List<HttpCookie> cookies = new java.util.ArrayList<HttpCookie>(); in get()
221 for (HttpCookie cookie : cookieJar.get(uri)) { in get()
294 List<HttpCookie> cookies; in put()
296 cookies = HttpCookie.parse(headerValue); in put()
304 for (HttpCookie cookie : cookies) { in put()
376 private boolean shouldAcceptInternal(URI uri, HttpCookie cookie) { in shouldAcceptInternal()
415 private static boolean pathMatches(URI uri, HttpCookie cookie) { in pathMatches()
436 private List<String> sortByPath(List<HttpCookie> cookies) { in sortByPath()
444 for (HttpCookie cookie : cookies) { in sortByPath()
469 static class CookiePathComparator implements Comparator<HttpCookie> {
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DAbstractCookiesTest.java45 import java.net.HttpCookie;
104 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testNetscapeResponse()
106 HttpCookie cookie = cookies.get(0); in testNetscapeResponse()
134 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2109Response()
136 HttpCookie cookie = cookies.get(0); in testRfc2109Response()
167 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2965Response()
169 HttpCookie cookie = cookies.get(0); in testRfc2965Response()
202 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testQuotedAttributeValues()
204 HttpCookie cookie = cookies.get(0); in testQuotedAttributeValues()
222 List<HttpCookie> cookies = sortedCopy(cookieStore.cookies); in testResponseWithMultipleCookieHeaderLines()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/net/
DHttpCookie.java32 public final class HttpCookie implements java.lang.Cloneable { class
34 public HttpCookie(java.lang.String name, java.lang.String value) { in HttpCookie() method in HttpCookie
38 private HttpCookie(java.lang.String name, java.lang.String value, java.lang.String header) { in HttpCookie() method in HttpCookie
42 public static java.util.List<java.net.HttpCookie> parse(java.lang.String header) { in parse()
46 private static java.util.List<java.net.HttpCookie> parse( in parse()
175 private static java.net.HttpCookie parseInternal( in parseInternal()
181 java.net.HttpCookie cookie, java.lang.String attrName, java.lang.String attrValue) { in assignAttribute()
236 static final java.util.Map<java.lang.String, java.net.HttpCookie.CookieAttributeAssignor>
305 java.net.HttpCookie cookie, java.lang.String attrName, java.lang.String attrValue); in assign()
/libcore/
Dopenjdk_java_files.bp282 "ojluni/src/main/java/java/net/HttpCookie.java",