Skip navigation links

Package com.meterware.httpunit.cookies

Classes to support cookie handling.

See: Description

Package com.meterware.httpunit.cookies Description

Classes to support cookie handling. Supports the HTTP state mechanism. The central class of this package is the CookieJar, which acts as a repository of Cookie objects. There are two main ways to get cookies into the CookieJar. The first is to construct the CookieJar, passing a CookieSource to its constructor. This will cause the CookieJar to parse the Set-Cookie headers from the source object. The second is to copy them from another CookieJar through use of the updateCookies(CookieJar) method.

The CookieJar can also produce a Cookie header to be sent as part of a request. The CookieJar.getCookieHeaderField(java.net.URL) method will select any cookies that it has which can be sent to the specified URL and assemble them into an appropriate header.

Skip navigation links
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.