| Modifier and Type | Field and Description |
|---|---|
| private static final CookieJar | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if cookie was added or replaced.the cookie to add. cookie)Overrides java. Implements java. Adds a non |
| public void | clear()
Overrides java. Implements java. Clears the cookie jar. |
| public boolean | contains(Object
element whose presence in this set is to be tested o)Overrides java. Implements java. Returns |
| private static int | cookieUniqueIdComparator(ServerCookie
base cookie cookie, String name to compare (not null) name, String maybe nullable domain domain, String maybe nullable path path)Follows the |
| public ServerCookie | |
| public ServerCookie | |
| public CookieJar | |
| public Iterator | iterator()
Implements abstract java. Implements java. Returns an iterator over the elements in this set. |
| public ServerCookie | Returns: the matched cookiecookie name name, String cookie domain domain, String cookie path path, boolean true to invalidate the cookie, false to remove from the jar.Removes a unique cookie from the cookie jar using the cookies unique cookie identifier. |
| public ServerCookie | Returns: the matched cookiecookie name name, boolean true to invalidate the cookie, false to remove from the jar.Removes the first cookie from the cookie jar that matches the cookies name. |
| public CookieJar | Returns: read only cookie jar or an empty jar of cookies that were affected by the operationname to search in the cookie jar name, boolean true to invalidate the cookie, false to remove from the jar.Get a read only slice of the cookie jar, with all removed or invalidated cookies that matches by name. |
| private static void | |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this set (its cardinality). |
| EMPTY | back to summary |
|---|---|
| private static final CookieJar EMPTY | |
| list | back to summary |
|---|---|
| private final List<ServerCookie> list | |
| CookieJar | back to summary |
|---|---|
| public CookieJar() | |
| CookieJar | back to summary |
|---|---|
| public CookieJar(CharSequence cookieHeader) | |
| CookieJar | back to summary |
|---|---|
| private CookieJar(List<ServerCookie> list) | |
| add | back to summary |
|---|---|
| public boolean add(ServerCookie cookie) Overrides java. Implements java. Adds a non
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Clears the cookie jar. Clearing the cookie jar is only allowed if the cookie jar is not a slice
view of the original cookie jar. In other words if this object was acquired from
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides java. Implements java. Doc from java. Returns | |
| cookieUniqueIdComparator | back to summary |
|---|---|
| private static int cookieUniqueIdComparator(ServerCookie cookie, String name, String domain, String path) Follows the
| |
| get | back to summary |
|---|---|
| public ServerCookie get(String name) Get the first cookie that matches by name.
| |
| get | back to summary |
|---|---|
| public ServerCookie get(String name, String domain, String path) Get a unique cookie by the cookie unique identifier tuple.
| |
| getAll | back to summary |
|---|---|
| public CookieJar getAll(String name) Get a read only slice of the cookie jar, with all cookies that matches by name.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
| |
| removeOrInvalidate | back to summary |
|---|---|
| public ServerCookie removeOrInvalidate(String name, String domain, String path, boolean invalidate) Removes a unique cookie from the cookie jar using the cookies unique cookie identifier.
| |
| removeOrInvalidate | back to summary |
|---|---|
| public ServerCookie removeOrInvalidate(String name, boolean invalidate) Removes the first cookie from the cookie jar that matches the cookies name.
| |
| removeOrInvalidateAll | back to summary |
|---|---|
| public CookieJar removeOrInvalidateAll(String name, boolean invalidate) Get a read only slice of the cookie jar, with all removed or invalidated cookies that matches by name.
| |
| removeOrInvalidateCookie | back to summary |
|---|---|
| private static void removeOrInvalidateCookie(Iterator<ServerCookie> it, ServerCookie cookie, boolean invalidate) | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |