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 java.net.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
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> get(java.net.URI uri, java.util.Map<java.lang.String,java.util.List<java.lang.String>> requestHeaders)
           
 void put(java.net.URI uri, java.util.Map<java.lang.String,java.util.List<java.lang.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 java.util.Map<java.lang.String,java.util.List<java.lang.String>> get(java.net.URI uri,
                                                                            java.util.Map<java.lang.String,java.util.List<java.lang.String>> requestHeaders)
                                                                     throws java.io.IOException
Specified by:
get in class java.net.CookieHandler
Throws:
java.io.IOException

put

public void put(java.net.URI uri,
                java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders)
         throws java.io.IOException
Specified by:
put in class java.net.CookieHandler
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.