@Contract(threading=IMMUTABLE) public class CookiePathComparator extends java.lang.Object implements java.io.Serializable, java.util.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 java.lang.String |
normalizePath(Cookie cookie) |
public static final CookiePathComparator INSTANCE
private static final long serialVersionUID