com.sun.faban.driver.transport.hc3
Class FabanCookieSpec

java.lang.Object
  extended by org.apache.commons.httpclient.cookie.CookieSpecBase
      extended by com.sun.faban.driver.transport.hc3.FabanCookieSpec
All Implemented Interfaces:
org.apache.commons.httpclient.cookie.CookieSpec

public class FabanCookieSpec
extends org.apache.commons.httpclient.cookie.CookieSpecBase

The Faban cookie spec is even more liberal than Apache's CookieSpecBase. It allows cookies with invalid paths to pass.


Field Summary
 
Fields inherited from class org.apache.commons.httpclient.cookie.CookieSpecBase
LOG
 
Fields inherited from interface org.apache.commons.httpclient.cookie.CookieSpec
PATH_DELIM, PATH_DELIM_CHAR
 
Constructor Summary
FabanCookieSpec()
           
 
Method Summary
 void validate(String host, int port, String path, boolean secure, org.apache.commons.httpclient.Cookie cookie)
          Performs most common Cookie validation
 
Methods inherited from class org.apache.commons.httpclient.cookie.CookieSpecBase
domainMatch, formatCookie, formatCookieHeader, formatCookieHeader, formatCookies, getValidDateFormats, match, match, parse, parse, parseAttribute, pathMatch, setValidDateFormats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FabanCookieSpec

public FabanCookieSpec()
Method Detail

validate

public void validate(String host,
                     int port,
                     String path,
                     boolean secure,
                     org.apache.commons.httpclient.Cookie cookie)
              throws org.apache.commons.httpclient.cookie.MalformedCookieException
Performs most common Cookie validation

Specified by:
validate in interface org.apache.commons.httpclient.cookie.CookieSpec
Overrides:
validate in class org.apache.commons.httpclient.cookie.CookieSpecBase
Parameters:
host - the host from which the Cookie was received
port - the port from which the Cookie was received
path - the path from which the Cookie was received
secure - true when the Cookie was received using a secure connection
cookie - The cookie to validate.
Throws:
org.apache.commons.httpclient.cookie.MalformedCookieException - if an exception occurs during validation