Cookie header such
that those with more specific Path attributes precede those with
less specific.
This comparator assumes that Path attributes of two cookies path-match a commmon request-URI. Otherwise, the result of the comparison is undefined.
| Modifier and Type | Field and Description |
|---|---|
| public static final CookiePathComparator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(final Cookie
the first object to be compared. c1, final Cookie the second object to be compared. c2)Implements java. |
| private String |
| INSTANCE | back to summary |
|---|---|
| public static final CookiePathComparator INSTANCE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| CookiePathComparator | back to summary |
|---|---|
| public CookiePathComparator() | |
| compare | back to summary |
|---|---|
| public int compare(final Cookie c1, final 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 | |
| normalizePath | back to summary |
|---|---|
| private String normalizePath(final Cookie cookie) | |