| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | buckets
The mapping from domain names to cookie buckets. |
| private static final PlatformLogger | |
| private static final int | |
| private static final int | |
| private static final int | |
| private int | totalCount
The total number of cookies currently in the store. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv Cookie | |
| pack-priv List | |
| private void | |
| private void | |
| private void | |
| pack-priv void |
| buckets | back to summary |
|---|---|
| private final Map<String, Map<Cookie, Cookie>> buckets The mapping from domain names to cookie buckets.
Each cookie bucket stores the cookies associated with the
corresponding domain. Each cookie bucket is represented
by a Map | |
| logger | back to summary |
|---|---|
| private static final PlatformLogger logger | |
| MAX_BUCKET_SIZE | back to summary |
|---|---|
| private static final int MAX_BUCKET_SIZE | |
| TOTAL_COUNT_LOWER_THRESHOLD | back to summary |
|---|---|
| private static final int TOTAL_COUNT_LOWER_THRESHOLD | |
| TOTAL_COUNT_UPPER_THRESHOLD | back to summary |
|---|---|
| private static final int TOTAL_COUNT_UPPER_THRESHOLD | |
| totalCount | back to summary |
|---|---|
| private int totalCount The total number of cookies currently in the store. | |
| CookieStore | back to summary |
|---|---|
| pack-priv CookieStore() Creates a new | |
| find | back to summary |
|---|---|
| private void find(List<Cookie> list, Map<Cookie, Cookie> bucket, String hostname, String path, boolean secureProtocol, boolean httpApi) Finds all the cookies that are stored in the given bucket and match the given query. | |
| get | back to summary |
|---|---|
| pack-priv Cookie get(Cookie cookie) Returns the currently stored cookie with the same name, domain, and path as the given cookie. | |
| get | back to summary |
|---|---|
| pack-priv List Returns all the currently stored cookies that match the given query. | |
| log | back to summary |
|---|---|
| private void log(String message, Cookie cookie, Map<Cookie, Cookie> bucket) Logs a cookie event. | |
| purge | back to summary |
|---|---|
| private void purge(Map<Cookie, Cookie> bucket) Removes excess cookies from a given bucket. | |
| purge | back to summary |
|---|---|
| private void purge() Removes excess cookies globally. | |
| put | back to summary |
|---|---|
| pack-priv void put(Cookie cookie) Stores the given cookie. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Cookie
the first object to be compared. c1, Cookie the second object to be compared. c2)Implements java. Compares its two arguments for order. |
| GetComparator | back to summary |
|---|---|
| private GetComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Cookie c1, Cookie c2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Cookie
the first object to be compared. c1, Cookie the second object to be compared. c2)Implements java. Compares its two arguments for order. |
| RemovalComparator | back to summary |
|---|---|
| private RemovalComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Cookie c1, Cookie c2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |