@Contract(threading=IMMUTABLE) public class CookiePathComparator extends Object implements Serializable, Comparator<Cookie>
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 |
---|---|
static CookiePathComparator |
INSTANCE |
private static long |
serialVersionUID |
Constructor and Description |
---|
CookiePathComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Cookie c1,
Cookie c2) |
private String |
normalizePath(Cookie cookie) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final CookiePathComparator INSTANCE
private static final long serialVersionUID
public CookiePathComparator()
private String normalizePath(Cookie cookie)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses