API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. CookieHandler View Source
Author(s)
Yingxian Wang
Since
1.5
Version
1.4, 03/08/09
Serial
Hierarchy
 Object
      CookieHandler
Implements
Subclasses
Description
publicabstract abstract class CookieHandler
  A CookieHandler object provides a callback mechanism to hook up a HTTP state management policy implementation into the HTTP protocol handler.
See also:   
Constructors
public CookieHandler ()
Methods
Hide/Show inherited methods
publicabstract Map<String, List<String>> get (URI uri, Map<String, List<String>> requestHeaders) throws IOException
  Gets all the applicable cookies from a cookie cache for the specified uri in the request header.
publicstaticsynchronized CookieHandler getDefault ()
  Gets the system-wide cookie handler.
publicabstract void put (URI uri, Map<String, List<String>> responseHeaders) throws IOException
  Sets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache.
publicstaticsynchronized void setDefault (CookieHandler cHandler)
  Sets (or unsets) the system-wide cookie handler.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar