|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.net.CookieHandler
org.jdesktop.http.CookieManager
public class CookieManager extends CookieHandler
A JVM-wide manager of HTTP Cookies.
| 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 |
|---|
private static Map cache
| Constructor Detail |
|---|
private CookieManager()
| Method Detail |
|---|
public Map get(URI uri, Map requestHeaders)
public static Cookie[] getCookies(URI uri)
public static Cookie[] getCookies(String host)
public static Cookie[] getCookies()
public static void install()
private static boolean pathsMatch(String p1, String p2)
public void put(URI uri, Map responseHeaders)
Groovy Documentation