English | Site Directory

Android - An Open Handset Alliance Project

org.apache.http.cookie
public class

org.apache.http.cookie.CookiePathComparator

java.lang.Object
org.apache.http.cookie.CookiePathComparator Serializable Comparator<T>

This cookie comparator ensures that multiple cookies satisfying a common criteria are ordered in the 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.

Summary

Public Constructors

            CookiePathComparator()

Public Methods

          int  compare(Cookie c1, Cookie c2)
Methods inherited from class java.lang.Object
Methods inherited from interface java.util.Comparator

Details

Public Constructors

public CookiePathComparator()

Public Methods

public int compare(Cookie c1, Cookie c2)

Build 111085-111085 - 25 Sep 2008 14:22