sunlabs.brazil.proxy
Class CookieFilter.CookieInfo

java.lang.Object
  extended by sunlabs.brazil.proxy.CookieFilter.CookieInfo
Enclosing class:
CookieFilter

public static class CookieFilter.CookieInfo
extends Object

Store information about a cookie


Constructor Summary
CookieFilter.CookieInfo(sunlabs.brazil.proxy.CookieFilter.Url url, String line)
          Create a cookie object.
CookieFilter.CookieInfo(String value)
          Generate the cookie info from the string representation This is called with the output of toString().
CookieFilter.CookieInfo(String url, String line)
           
 
Method Summary
static long expTime(String dateString)
           
 boolean isEquals(CookieFilter.CookieInfo cookie)
          See if cookies match
 boolean isMatch(sunlabs.brazil.proxy.CookieFilter.Url url)
          See if url matches this cookie
 String toString()
          Generate string representation - convertable back into a cookie
 void update()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CookieFilter.CookieInfo

public CookieFilter.CookieInfo(sunlabs.brazil.proxy.CookieFilter.Url url,
                               String line)
Create a cookie object.

Parameters:
url - The url for this request, to fill out default stuff
line - The http line containing the cookie request

CookieFilter.CookieInfo

public CookieFilter.CookieInfo(String url,
                               String line)

CookieFilter.CookieInfo

public CookieFilter.CookieInfo(String value)
Generate the cookie info from the string representation This is called with the output of toString(). No error checking

Method Detail

toString

public String toString()
Generate string representation - convertable back into a cookie

Overrides:
toString in class Object

isMatch

public boolean isMatch(sunlabs.brazil.proxy.CookieFilter.Url url)
See if url matches this cookie


update

public void update()

isEquals

public boolean isEquals(CookieFilter.CookieInfo cookie)
See if cookies match


expTime

public static long expTime(String dateString)

Version Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.