| java.lang.Object | |
| ↳ | java.net.CookieHandler |
Known Direct Subclasses
|
This class provides a way to manage cookies with a HTTP protocol handler.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets all cookies for a specific URI from the cookie cache.
| |||||||||||
Returns the system-wide cookie handler or
null if not set.
| |||||||||||
Sets all cookies of a specific URI in the
responseHeaders into
the cookie cache.
| |||||||||||
Sets the system-wide cookie handler.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Gets all cookies for a specific URI from the cookie cache.
| Parameters | |
|---|---|
uri |
URI:
a URI to search for applicable cookies. |
requestHeaders |
Map:
a list of request headers. |
| Returns | |
|---|---|
Map<String, List<String>> |
an unchangeable map of all appropriate cookies. |
| Throws | |
|---|---|
IOException |
if an error occurs during the I/O operation. |
Returns the system-wide cookie handler or null if not set.
| Returns | |
|---|---|
CookieHandler |
|
Sets all cookies of a specific URI in the responseHeaders into
the cookie cache.
| Parameters | |
|---|---|
uri |
URI:
the origin URI of the cookies. |
responseHeaders |
Map:
a list of request headers. |
| Throws | |
|---|---|
IOException |
if an error occurs during the I/O operation. |
Sets the system-wide cookie handler.
| Parameters | |
|---|---|
cHandler |
CookieHandler
|