Searched refs:cookie (Results 1 - 7 of 7) sorted by relevance
/libcore/luni/src/main/java/java/net/ |
H A D | CookiePolicy.java | 34 public boolean shouldAccept(URI uri, HttpCookie cookie) { 43 public boolean shouldAccept(URI uri, HttpCookie cookie) { 52 public boolean shouldAccept(URI uri, HttpCookie cookie) { 53 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost()); 58 * This method is used to determine whether or not the specified cookie 63 * @param cookie 65 * @return true if this cookie should be accepted; false otherwise 67 boolean shouldAccept(URI uri, HttpCookie cookie); argument
|
H A D | CookieManager.java | 29 * CookiePolicy. The former is in charge of cookie storage and the latter makes 32 * CookieHandler is in the center of cookie management. User can make use of 36 * some cookies into a cookie store. Three built-in CookiePolicy is defined: 38 * the policy by implementing CookiePolicy. Any accepted HTTP cookie is stored 44 * There are many ways to customize user's own HTTP cookie management: 60 private static final String VERSION_ZERO_HEADER = "Set-cookie"; 65 * Constructs a new cookie manager. 76 * Constructs a new cookie manager using a specified cookie store and a 77 * cookie polic [all...] |
H A D | CookieStore.java | 33 * Saves a HTTP cookie to this store. This is called for every incoming HTTP 36 * A cookie may or may not has an associated URI. If not, the cookie's 39 * cookie, the given URI will indicate where this cookie comes from. 41 * If a cookie corresponding to the given URI already exists, then it is 45 * the uri associated with the specified cookie. A null value 46 * indicates the cookie is not associated with a URI 47 * @param cookie 48 * the cookie t 50 add(URI uri, HttpCookie cookie) argument 95 remove(URI uri, HttpCookie cookie) argument [all...] |
H A D | CookieStoreImpl.java | 27 * An in-memory cookie store. 34 public synchronized void add(URI uri, HttpCookie cookie) { argument 35 if (cookie == null) { 36 throw new NullPointerException("cookie == null"); 45 cookies.remove(cookie); 47 cookies.add(cookie); 72 HttpCookie cookie = i.next(); 73 if (cookie.hasExpired()) { 76 result.add(cookie); 89 HttpCookie cookie 125 remove(URI uri, HttpCookie cookie) argument [all...] |
H A D | HttpCookie.java | 31 * session with an HTTP server. This class parses cookie headers for all three 32 * commonly used HTTP cookie specifications: 35 * <li>The Netscape cookie spec is officially obsolete but widely used in 36 * practice. Each cookie contains one key-value pair and the following 45 * the Netscape cookie spec. It replaces the {@code Expires} timestamp 131 * Returns true if {@code cookie} should be sent to or accepted from {@code uri} with respect 132 * to the cookie's path. Cookies match by directory prefix: URI "/foo" matches cookies "/foo", 135 static boolean pathMatches(HttpCookie cookie, URI uri) { argument 137 String cookiePath = matchablePath(cookie.getPath()); 142 * Returns true if {@code cookie} shoul 145 secureMatches(HttpCookie cookie, URI uri) argument 153 portMatches(HttpCookie cookie, URI uri) argument 315 setAttribute(HttpCookie cookie, String name, String value) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | CookiesTest.java | 62 HttpCookie cookie = cookies.get(0); 63 assertEquals("a", cookie.getName()); 64 assertEquals("android", cookie.getValue()); 65 assertEquals(null, cookie.getComment()); 66 assertEquals(null, cookie.getCommentURL()); 67 assertEquals(false, cookie.getDiscard()); 68 assertEquals(server.getCookieDomain(), cookie.getDomain()); 69 assertTrue(cookie.getMaxAge() > 100000000000L); 70 assertEquals("/path", cookie.getPath()); 71 assertEquals(true, cookie 577 add(URI uri, HttpCookie cookie) argument 602 remove(URI uri, HttpCookie cookie) argument [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | DexFile.java | 83 //System.out.println("DEX FILE cookie is " + mCookie); 114 //System.out.println("DEX FILE cookie is " + mCookie); 218 private static Class defineClass(String name, ClassLoader loader, int cookie, argument 222 result = defineClassNative(name, loader, cookie); 235 private static native Class defineClassNative(String name, ClassLoader loader, int cookie) argument 270 native private static String[] getClassNameList(int cookie); argument 291 * Open a DEX file. The value returned is a magic VM cookie. On 307 native private static void closeDexFile(int cookie); argument
|
Completed in 1165 milliseconds