Package com.sun.xml.rpc.client.http
Class CookieJar
- java.lang.Object
-
- com.sun.xml.rpc.client.http.CookieJar
-
- All Implemented Interfaces:
Serializable
public class CookieJar extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CookieJar()Create a new, empty cookie jar.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyRelevantCookies(URLConnection connection)voidrecordAnyCookies(URLConnection connection)Records any cookies which have been sent as part of an HTTP response.
-
-
-
Method Detail
-
recordAnyCookies
public void recordAnyCookies(URLConnection connection)
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
public void applyRelevantCookies(URLConnection connection)
-
-