API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. CookieManager View Source
Author(s)
Edward Wang
Since
1.6
Version
%I%, %E%
Serial
Hierarchy
 Object
      CookieHandler
          CookieManager
Implements
Subclasses
Description
public class CookieManager
  CookieManager provides a concrete implementation of CookieHandler, which separates the storage of cookies from the policy surrounding accepting and rejecting cookies.
See also:   
Constructors
public CookieManager ()
  Create a new cookie manager.
public CookieManager (CookieStore store, CookiePolicy cookiePolicy)
  Create a new cookie manager with specified cookie store and cookie policy.
Methods
Hide/Show inherited methods
public Map<String, List<String>> get (URI uri, Map<String, List<String>> requestHeaders) throws IOException [Specified in CookieHandler]
public CookieStore getCookieStore ()
  To retrieve current cookie store.
publicstaticsynchronized CookieHandler getDefault () [Inherited From CookieHandler]
  Gets the system-wide cookie handler.
public void put (URI uri, Map<String, List<String>> responseHeaders) throws IOException [Specified in CookieHandler]
public void setCookiePolicy (CookiePolicy cookiePolicy)
  To set the cookie policy of this cookie manager.
publicstaticsynchronized void setDefault (CookieHandler cHandler) [Inherited From CookieHandler]
  Sets (or unsets) the system-wide cookie handler.
Fields
Hide/Show inherited fields
Nested Classes
  CookieManager.CookiePathComparator
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar