com.judoscript.util
Class CookieJar

java.lang.Object
  extended by com.judoscript.util.CookieJar

public class CookieJar
extends java.lang.Object


Constructor Summary
CookieJar()
           
CookieJar(java.lang.String filename)
           
 
Method Summary
static Cookie fromLine(java.lang.String line)
           
 Cookie getAt(int i)
           
 void load(java.lang.String filename)
           
 void put(Cookie cookie)
          if not exist, just add.
 void save(java.lang.String filename)
           
 int size()
           
static java.lang.String toLine(Cookie cookie)
          Creates a Netscape cookies.txt-style line: domain FALSE path secure expiredate name value separator is '\t'; first 'FALSE' not so sure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieJar

public CookieJar()

CookieJar

public CookieJar(java.lang.String filename)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

put

public void put(Cookie cookie)
if not exist, just add. if max age <= 0, remove any. otherwise, replace.


size

public int size()

getAt

public Cookie getAt(int i)

load

public void load(java.lang.String filename)
          throws java.io.IOException
Throws:
java.io.IOException

save

public void save(java.lang.String filename)
          throws java.io.IOException
Throws:
java.io.IOException

toLine

public static java.lang.String toLine(Cookie cookie)
Creates a Netscape cookies.txt-style line: domain FALSE path secure expiredate name value separator is '\t'; first 'FALSE' not so sure.


fromLine

public static Cookie fromLine(java.lang.String line)