org.openware.loadsim.simulation
Class CookieManager

java.lang.Object
  |
  +--org.openware.loadsim.simulation.CookieManager
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class CookieManager
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

This class provides an interface to the netscape cookies file to pass cookies along with a request.

Slight modification by V. Sheffer -- added a default constructor and fixed a little bug with SimpleDataFormat (IBM JDK 1.1.6 for Linux).

Version:
$Revision: 1.2 $ $Date: 2000/06/17 09:24:21 $
Author:
Sean Dowd
See Also:
Serialized Form

Constructor Summary
CookieManager()
          Added by V.
CookieManager(java.lang.String cookieFile)
           
 
Method Summary
 void addCookieFromHeader(java.lang.String cookieHeader, java.net.URL url)
           
 java.lang.String getCookieHeaderForURL(java.net.URL url)
           
 void init()
           
 void printAllCookies()
           
 void removeCookieNamed(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieManager

public CookieManager()
Added by V. Sheffer

CookieManager

public CookieManager(java.lang.String cookieFile)
              throws java.io.IOException
Method Detail

init

public void init()

getCookieHeaderForURL

public java.lang.String getCookieHeaderForURL(java.net.URL url)

addCookieFromHeader

public void addCookieFromHeader(java.lang.String cookieHeader,
                                java.net.URL url)

removeCookieNamed

public void removeCookieNamed(java.lang.String name)

printAllCookies

public void printAllCookies()


Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.