net.sourceforge.apphere.cookies
Class CookieManager

java.lang.Object
  extended bynet.sourceforge.apphere.cookies.CookieManager

public class CookieManager
extends java.lang.Object

Author:
Dewi

Constructor Summary
CookieManager()
           
 
Method Summary
static CookieJar getUserCookies(HTTPHeader header)
           
static void readCookies(HTTPHeader response)
          // save the cookies in AppHere server and remove from response going to the browser
static void writeCookies(HTTPHeader request)
          insert the AppHere cookies instead of any existing ones (the browser shouldnt send cookies, or if it does, they could be another user's or something)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieManager

public CookieManager()
Method Detail

readCookies

public static void readCookies(HTTPHeader response)
// save the cookies in AppHere server and remove from response going to the browser

Parameters:
response -

writeCookies

public static void writeCookies(HTTPHeader request)
insert the AppHere cookies instead of any existing ones (the browser shouldnt send cookies, or if it does, they could be another user's or something)


getUserCookies

public static CookieJar getUserCookies(HTTPHeader header)
                                throws InvalidTokenException,
                                       AppHereException
Throws:
InvalidTokenException
AppHereException