@Contract(threading=STATELESS) 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 common request-URI. Otherwise, the result of the comparison is undefined.
public static final CookiePathComparator INSTANCE
public int compare(Cookie c1, Cookie c2)
compare 在接口中 Comparator<Cookie>Copyright © 2023. All rights reserved.