| Modifier and Type | Field and Description |
|---|---|
| private static final PlatformLogger | |
| private final CookieStore |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public Map | get(URI
a uri, Map<String, List<String>> URI representing the intended use for the
cookiesa Map from request header
field names to lists of field values representing
the current request headers requestHeaders)Implements abstract java. Gets all the applicable cookies from a cookie cache for the specified uri in the request header. |
| private String | |
| public void | put(URI
a uri, Map<String, List<String>> URI where the cookies come froman immutable map from field names to
lists of field values representing the response
header fields returned responseHeaders)Implements abstract java. Sets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache. |
| private void | |
| private static String | toLogString(Map<String, List<String>> headers)
Converts a map of HTTP headers to a string suitable for displaying in the log. |
| logger | back to summary |
|---|---|
| private static final PlatformLogger logger | |
| store | back to summary |
|---|---|
| private final CookieStore store | |
| CookieManager | back to summary |
|---|---|
| public CookieManager() Creates a new | |
| canonicalize | back to summary |
|---|---|
| private static String canonicalize(String hostname) Canonicalizes a hostname as required by RFC 6265. | |
| get | back to summary |
|---|---|
| public Map Implements abstract java. Doc from java. Gets all the applicable cookies from a cookie cache for the specified uri in the request header. The It is up to the implementation to take into account the HTTP protocol implementers should make sure that this method is called after all request headers related to choosing cookies are added, and before the request is sent. | |
| get | back to summary |
|---|---|
| private String get(URI uri) Returns the cookie string for a given URI. | |
| put | back to summary |
|---|---|
| public void put(URI uri, Map<String, List<String>> responseHeaders) Implements abstract java. Doc from java. Sets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache. | |
| put | back to summary |
|---|---|
| private void put(URI uri, Cookie cookie) Puts an individual cookie. | |
| toLogString | back to summary |
|---|---|
| private static String toLogString(Map<String, List<String>> headers) Converts a map of HTTP headers to a string suitable for displaying in the log. | |