jCookie v0.8b

com.sonalb.net.http.cookie
Class CookieUtils

java.lang.Object
  |
  +--com.sonalb.net.http.cookie.CookieUtils

public final class CookieUtils
extends Object

Provides utility functions for internal consumption.

Author:
Sonal Bansal

Constructor Summary
CookieUtils()
           
 
Method Summary
static CookieJar getCookiesForURL(CookieJar cj, CookieParser cp, URL url, boolean bRespectExpires)
          Picks out the Cookies in a CookieJar that are eligible to be sent with a request to a particular URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieUtils

public CookieUtils()
Method Detail

getCookiesForURL

public static CookieJar getCookiesForURL(CookieJar cj,
                                         CookieParser cp,
                                         URL url,
                                         boolean bRespectExpires)
Picks out the Cookies in a CookieJar that are eligible to be sent with a request to a particular URL.
Parameters:
cj - the CookieJar holding the Cookies
cp - the CookieParser which determines whether each Cookie can be sent with given URL
url - the URL for which Cookies have to be picked out
bRespectExpires - whether the lifetime of the Cookies should be taken into consideration
Returns:
the CookieJar with eligible Cookies; always non-null

Copyright (c) 2001-2002 Sonal Bansal