com.sun.xml.ws.transport.http.client
Class CookieJar
java.lang.Object
com.sun.xml.ws.transport.http.client.CookieJar
public class CookieJar
- extends Object
Generic class to hold onto HTTP cookies. Can record, retrieve, and
persistently store cookies associated with particular URLs.
Constructor Summary |
CookieJar()
Create a new, empty cookie jar. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookieJar
public CookieJar()
- Create a new, empty cookie jar.
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)