JCas
v0.3.1

cas
Class CookieManager

java.lang.Object
  extended bycas.CookieManager

public class CookieManager
extends Object

Manages different sets of cookies.

Version:
1.0
Author:
Ralph Schuster

Field Summary
protected  Map cookieFiles
          The cookie files loaded
protected  Set updatedFiles
          The files to save
 
Constructor Summary
CookieManager()
          Creates a new instance of CookieManager
 
Method Summary
 boolean checkCookie(File cookieFile, JCasRequest request, String hostIP)
          Returns true if the cookie is valid.
protected  String createCookie(Properties cookies)
          Creates a new cookie.
protected  Properties getCookieFile(File f)
          Returns the cookie file.
protected  void saveCookieFile(File f)
          Saves the cookie file.
protected  void saveCookies()
          Saves all cookies.
 String updateCookie(File cookieFile, JCasRequest request, String hostIP, int timeout)
          Creates or updates the cookie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cookieFiles

protected Map cookieFiles
The cookie files loaded


updatedFiles

protected Set updatedFiles
The files to save

Constructor Detail

CookieManager

public CookieManager()
Creates a new instance of CookieManager

Method Detail

checkCookie

public boolean checkCookie(File cookieFile,
                           JCasRequest request,
                           String hostIP)
Returns true if the cookie is valid.


updateCookie

public String updateCookie(File cookieFile,
                           JCasRequest request,
                           String hostIP,
                           int timeout)
Creates or updates the cookie.


createCookie

protected String createCookie(Properties cookies)
Creates a new cookie.


getCookieFile

protected Properties getCookieFile(File f)
Returns the cookie file.


saveCookieFile

protected void saveCookieFile(File f)
Saves the cookie file.


saveCookies

protected void saveCookies()
Saves all cookies.


JCas
v0.3.1