| |
|
| java.lang.Object net.matuschek.http.cookie.MemoryCookieManager
MemoryCookieManager | public class MemoryCookieManager implements CookieManager(Code) | | This class is a container for storing cookies in
the memory. It will automatically expire old cookies.
author: Daniel Matuschek version: $Id $ |
Inner Class :class CleanupThread extends Thread | |
Constructor Summary | |
public | MemoryCookieManager() Default constructor, initializes a new CookieManager
that has no cookies stored. |
MemoryCookieManager | public MemoryCookieManager()(Code) | | Default constructor, initializes a new CookieManager
that has no cookies stored.
It also starts a CleanUp thread that will periodically delete
expired cookies.
|
add | public void add(Cookie cookie)(Code) | | Add this cookie. If there is already a cookie with the same name and
path it will be owerwritten by the new cookie.
Parameters: cookie - a Cookie that will be stored in this cookie manager |
cleanUpExpired | protected void cleanUpExpired()(Code) | | Cleans up expired cookies
|
clear | public void clear()(Code) | | Remove all stored cookies
|
cookiesForURL | public String cookiesForURL(URL u)(Code) | | Get the cookie values for the given URL.
a String containing a list of NAME=VALUE pairs (separated bysemicolon) containing all cookie values that are valid for thegiven URL, null if no cookies can be found for this URL |
countCookies | public int countCookies()(Code) | | How many cookies are currently stored in this CookieManager ?
the number of stored Cookies |
finish | public void finish()(Code) | | Insiders BugFix
This method finishes the CleanUpThread.
|
|
|
|