|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.CookieHandler
public abstract class CookieHandler
This class is ready for managing a stateful cookie with HTTP protocol
| Constructor Summary | |
|---|---|
CookieHandler()
|
|
| Method Summary | |
|---|---|
abstract Map<String,List<String>> |
get(URI uri,
Map<String,List<String>> requestHeaders)
Searchs and gets all cookies in the cache by the specified uri in the request header. |
static CookieHandler |
getDefault()
Returns a system-wide cookie handler, or null if not set |
abstract void |
put(URI uri,
Map<String,List<String>> responseHeaders)
Sets cookies according to uri and responseHeaders |
static void |
setDefault(CookieHandler cHandler)
sets a system-wide cookie handler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CookieHandler()
| Method Detail |
|---|
public static CookieHandler getDefault()
public static void setDefault(CookieHandler cHandler)
cHandler - the cookie handler to set
public abstract Map<String,List<String>> get(URI uri,
Map<String,List<String>> requestHeaders)
throws IOException
uri - the specified uri to search forrequestHeaders - a list of request headers
IOException - if some error of I/O operation occurs
public abstract void put(URI uri,
Map<String,List<String>> responseHeaders)
throws IOException
uri - the specified uriresponseHeaders - a list of request headers
IOException - if some error of I/O operation occurs
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||