Groovy Documentation

org.jdesktop.http
[Java] Class CookieManager

java.lang.Object
  java.net.CookieHandler
      org.jdesktop.http.CookieManager

public class CookieManager
extends CookieHandler

A JVM-wide manager of HTTP Cookies.

Authors:
rbair


Nested Class Summary
private static class CookieManager.Wrapper

 
Field Summary
private static Map cache

 
Constructor Summary
private CookieManager()

Creates a new instance of CookieManager

 
Method Summary
Map get(URI uri, Map requestHeaders)

static Cookie[] getCookies(URI uri)

static Cookie[] getCookies(String host)

static Cookie[] getCookies()

For two strings that represent paths, p1 and p2, p1 path-matches p2 if p2 is a prefix of p1 (including the case where p1 and p2 string-compare equal).

static void install()

private static boolean pathsMatch(String p1, String p2)

void put(URI uri, Map responseHeaders)

 
Methods inherited from class CookieHandler
get, put, getDefault, setDefault, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

cache

private static Map cache


 
Constructor Detail

CookieManager

private CookieManager()
Creates a new instance of CookieManager


 
Method Detail

get

public Map get(URI uri, Map requestHeaders)


getCookies

public static Cookie[] getCookies(URI uri)


getCookies

public static Cookie[] getCookies(String host)


getCookies

public static Cookie[] getCookies()
For two strings that represent paths, p1 and p2, p1 path-matches p2 if p2 is a prefix of p1 (including the case where p1 and p2 string-compare equal). Thus, the string /tec/waldo path-matches /tec.


install

public static void install()


pathsMatch

private static boolean pathsMatch(String p1, String p2)


put

public void put(URI uri, Map responseHeaders)


 

Groovy Documentation