/** * Creates a cookie jar which is initially populated with cookies parsed from the <code>Set-Cookie</code> and * <code>Set-Cookie2</code> header fields. * <p> * Note that the parsing does not strictly follow the specifications, but * attempts to imitate the behavior of popular browsers. Specifically, * it allows cookie values to contain commas, which the * Netscape standard does not allow for, but which is required by some servers. * </p> */ public CookieJar( CookieSource source ) { _press = new CookiePress( source.getURL() ); findCookies( source.getHeaderFields( "Set-Cookie" ), new RFC2109CookieRecipe() ); findCookies( source.getHeaderFields( "Set-Cookie2" ), new RFC2965CookieRecipe() ); }
/** * Creates a cookie jar which is initially populated with cookies parsed from the <code>Set-Cookie</code> and * <code>Set-Cookie2</code> header fields. * <p> * Note that the parsing does not strictly follow the specifications, but * attempts to imitate the behavior of popular browsers. Specifically, * it allows cookie values to contain commas, which the * Netscape standard does not allow for, but which is required by some servers. * </p> */ public CookieJar( CookieSource source ) { _press = new CookiePress( source.getURL() ); findCookies( source.getHeaderFields( "Set-Cookie" ), new RFC2109CookieRecipe() ); findCookies( source.getHeaderFields( "Set-Cookie2" ), new RFC2965CookieRecipe() ); }
/** * Creates a cookie jar which is initially populated with cookies parsed from the <code>Set-Cookie</code> and * <code>Set-Cookie2</code> header fields. * <p> * Note that the parsing does not strictly follow the specifications, but * attempts to imitate the behavior of popular browsers. Specifically, * it allows cookie values to contain commas, which the * Netscape standard does not allow for, but which is required by some servers. * </p> */ public CookieJar( CookieSource source ) { _press = new CookiePress( source.getURL() ); findCookies( source.getHeaderFields( "Set-Cookie" ), new RFC2109CookieRecipe() ); findCookies( source.getHeaderFields( "Set-Cookie2" ), new RFC2965CookieRecipe() ); }
/** * Creates an empty cookie jar. */ public CookieJar() { _press = new CookiePress( null ); }
/** * Creates an empty cookie jar. */ public CookieJar() { _press = new CookiePress( null ); }
/** * Creates an empty cookie jar. */ public CookieJar() { _press = new CookiePress( null ); }