Package com.meterware.httpunit.cookies
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.
-
ClassDescriptionAn HTTP client-side cookie.A collection of HTTP cookies, which can interact with cookie and set-cookie header values.An interface for classes which can listen for cookies being rejected and the reason.Controls behavior for cookies.This interface represents a source from which to parse out cookies.