org.eclipse.jgit.iplog
Class SimpleCookieManager

java.lang.Object
  extended by java.net.CookieHandler
      extended by 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.


Constructor Summary
SimpleCookieManager()
           
 
Method Summary
 Map<String,List<String>> get(URI uri, Map<String,List<String>> requestHeaders)
           
 void put(URI uri, Map<String,List<String>> responseHeaders)
           
 
Methods inherited from class java.net.CookieHandler
getDefault, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCookieManager

public SimpleCookieManager()
Method Detail

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.