gov.llnl.babel.url.cookie
public class CookieJar extends java.lang.Object implements java.io.Serializable
CookieJar
is a container for HTTP Cookie's. This container
manages cookie expiration and determining which cookies are relevant to
a particular URL.Constructor and Description |
---|
CookieJar() |
Modifier and Type | Method and Description |
---|---|
void |
add(Cookie c)
Add a cookie to the jar.
|
java.util.Iterator |
getRelevantCookies(java.lang.String hostname,
java.lang.String path,
int port)
Select and return cookies from this jar that are appropriate
for the hostname, path and port given.
|
void |
removeExpired()
Remove stale cookies from the jar.
|
public void add(Cookie c)
public java.util.Iterator getRelevantCookies(java.lang.String hostname, java.lang.String path, int port)
public void removeExpired()