| java.lang.Object com.sun.xml.ws.transport.http.client.CookieJar
CookieJar | public class CookieJar (Code) | | Generic class to hold onto HTTP cookies. Can record, retrieve, and
persistently store cookies associated with particular URLs.
author: WS Development Team |
Constructor Summary | |
public | CookieJar() Create a new, empty cookie jar. |
Method Summary | |
public synchronized void | applyRelevantCookies(URLConnection connection) | public synchronized 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. |
CookieJar | public CookieJar()(Code) | | Create a new, empty cookie jar.
|
applyRelevantCookies | public synchronized void applyRelevantCookies(URLConnection connection)(Code) | | |
recordAnyCookies | public synchronized void recordAnyCookies(URLConnection connection)(Code) | | 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.
|
|
|