de.pangaea.metadataportal.utils
Class SimpleCookieHandler

java.lang.Object
  extended by java.net.CookieHandler
      extended by de.pangaea.metadataportal.utils.SimpleCookieHandler

public final class SimpleCookieHandler
extends CookieHandler

Author:
Uwe Schindler

Field Summary
static SimpleCookieHandler INSTANCE
          Singleton instance of this class.
 
Method Summary
 void disable()
           
 void enable()
          Resets all recorded cookies for the current thread.
 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
 

Field Detail

INSTANCE

public static final SimpleCookieHandler INSTANCE
Singleton instance of this class. Should be set with CookieHandler.setDefault(java.net.CookieHandler) as default.

Method Detail

enable

public void enable()
Resets all recorded cookies for the current thread. This method is called from Harvester.open(de.pangaea.metadataportal.config.SingleIndexConfig) to have an empty cookie list.


disable

public void disable()

put

public void put(URI uri,
                Map<String,List<String>> responseHeaders)
Specified by:
put in class CookieHandler

get

public Map<String,List<String>> get(URI uri,
                                    Map<String,List<String>> requestHeaders)
Specified by:
get in class CookieHandler


Copyright ©2007-2011 panFMP Developers c/o Uwe Schindler