com.sun.xml.ws.transport.http.client
Class CookieJar

java.lang.Object
  extended by 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.
 
Method Summary
 void applyRelevantCookies(URLConnection connection)
           
 void recordAnyCookies(URLConnection connection)
          Records any cookies which have been sent as part of an HTTP response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieJar

public CookieJar()
Create a new, empty cookie jar.

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)