org.eclipse.jgit.iplog
Class SimpleCookieManager
java.lang.Object
java.net.CookieHandler
org.eclipse.jgit.iplog.SimpleCookieManager
public class SimpleCookieManager
- extends CookieHandler
Dumb implementation of a CookieManager for the JRE.
Cookies are keyed only by the host name in the URI. Cookie attributes like
domain and path are ignored to simplify the implementation.
If we are running on Java 6 or later we should favor using the standard
java.net.CookieManager
class instead.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCookieManager
public SimpleCookieManager()
get
public Map<String,List<String>> get(URI uri,
Map<String,List<String>> requestHeaders)
throws IOException
- Specified by:
get
in class CookieHandler
- Throws:
IOException
put
public void put(URI uri,
Map<String,List<String>> responseHeaders)
throws IOException
- Specified by:
put
in class CookieHandler
- Throws:
IOException
Copyright © 2011. All Rights Reserved.