Methods Summary |
---|
public abstract java.util.Map | get(java.net.URI uri, java.util.Map requestHeaders)Gets all cookies for a specific URI from the cookie cache.
|
public static java.net.CookieHandler | getDefault()Returns the system-wide cookie handler or {@code null} if not set. //$NON-NLS-1$
SecurityManager sm = System.getSecurityManager();
if (null != sm) {
sm.checkPermission(getCookieHandlerPermission);
}
return systemWideCookieHandler;
|
public abstract void | put(java.net.URI uri, java.util.Map responseHeaders)Sets all cookies of a specific URI in the {@code responseHeaders} into
the cookie cache.
|
public static void | setDefault(java.net.CookieHandler cHandler)Sets the system-wide cookie handler.
SecurityManager sm = System.getSecurityManager();
if (null != sm) {
sm.checkPermission(setCookieHandlerPermission);
}
systemWideCookieHandler = cHandler;
|