org.placidus.http
Class CookieHelper

java.lang.Object
  extended by org.placidus.http.CookieHelper

public class CookieHelper
extends java.lang.Object

Helper functions for apache's Cookie class

Author:
ds

Constructor Summary
CookieHelper()
           
 
Method Summary
static boolean containsCookie(java.util.List<org.apache.commons.httpclient.Cookie> cookieList, java.lang.String domain, java.lang.String name, java.lang.String value, java.lang.String path)
          Checks if a cookie exists in given list with given parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieHelper

public CookieHelper()
Method Detail

containsCookie

public static boolean containsCookie(java.util.List<org.apache.commons.httpclient.Cookie> cookieList,
                                     java.lang.String domain,
                                     java.lang.String name,
                                     java.lang.String value,
                                     java.lang.String path)
Checks if a cookie exists in given list with given parameters

Parameters:
cookieList - to check in
domain - to compare
name - to compare
value - to compare
path - to compare
Returns:
true if cookie was found in list, false otherwise


Copyright © 2006 DS. All Rights Reserved.