org.openrdf.util.http
Class CookieManager

java.lang.Object
  extended byorg.openrdf.util.http.CookieManager

public class CookieManager
extends Object

An HTTP cookie manager.


Constructor Summary
CookieManager()
          Creates a new CookieManager.
 
Method Summary
 void clear()
          Removes all cookie information from this cookie manager.
 void clear(String hostName)
          Removes all cookie information for the specified host from this cookie manager.
 void extractCookies(URLConnection urlConnection)
          Extracts any cookies from the supplied URLConnection and stores them internally.
 void setCookies(URLConnection urlConnection)
          Sets any cookies that are relevant for the supplied URLConnection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieManager

public CookieManager()
Creates a new CookieManager.

Method Detail

extractCookies

public void extractCookies(URLConnection urlConnection)
Extracts any cookies from the supplied URLConnection and stores them internally.

Parameters:
urlConnection - A URLConnection.

setCookies

public void setCookies(URLConnection urlConnection)
Sets any cookies that are relevant for the supplied URLConnection.

Parameters:
urlConnection - A URLConnection.

clear

public void clear()
Removes all cookie information from this cookie manager.


clear

public void clear(String hostName)
Removes all cookie information for the specified host from this cookie manager.

Parameters:
hostName - A server's host name.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.