Package com.sun.xml.rpc.client.http
Class CookieJar
java.lang.Object
com.sun.xml.rpc.client.http.CookieJar
- All Implemented Interfaces:
Serializable
Generic class to hold onto HTTP cookies. Can record, retrieve, and
persistently store cookies associated with particular URLs.
- Author:
- JAX-RPC Development Team
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRelevantCookies(URLConnection connection) voidrecordAnyCookies(URLConnection connection) Records any cookies which have been sent as part of an HTTP response.
-
Constructor Details
-
CookieJar
public CookieJar()Create a new, empty cookie jar.
-
-
Method Details
-
recordAnyCookies
Records any cookies which have been sent as part of an HTTP response. The connection parameter must be already have been opened, so that the response headers are available. It's ok to pass a non-HTTP URL connection, or one which does not have any set-cookie headers. -
applyRelevantCookies
-