| java.lang.Object java.net.CookieHandler
CookieHandler | abstract public class CookieHandler (Code) | | This class is ready for managing a stateful cookie with HTTP protocol
|
get | abstract public Map<String, List<String>> get(URI uri, Map<String, List<String>> requestHeaders) throws IOException(Code) | | Searchs and gets all cookies in the cache by the specified uri in the
request header.
Parameters: uri - the specified uri to search for Parameters: requestHeaders - a list of request headers a map that record all such cookies, the map is unchangeable throws: IOException - if some error of I/O operation occurs |
getDefault | public static CookieHandler getDefault()(Code) | | Returns a system-wide cookie handler, or null if not set
a cookie handler |
put | abstract public void put(URI uri, Map<String, List<String>> responseHeaders) throws IOException(Code) | | Sets cookies according to uri and responseHeaders
Parameters: uri - the specified uri Parameters: responseHeaders - a list of request headers throws: IOException - if some error of I/O operation occurs |
setDefault | public static void setDefault(CookieHandler cHandler)(Code) | | sets a system-wide cookie handler
Parameters: cHandler - the cookie handler to set |
|
|