Method Summary |
|
public synchronized void | clear() Removes all cookies from this manager. |
public Cookie[] | getCookies() Returns an array of the cookies being managed. |
public String | getRequestHeader() Returns the string representation of all the cookies being managed
by this object as an http cookie request header. |
public String | getRequestHeader(String path, String domain) Returns the string representation of the cookies being managed
by this object as an http cookie request header
The format of the header is:
NAME1=VALUE1; NAME2=VALUE2; ....
Parameters: path - Only return the cookies that are valid in the specifiedpath. |
public String | getResponseHeader() Returns the string representation of the cookies being managed
by this object as an http cookie response ("Set-Cookie")
header. |
public synchronized void | mergeHeader(String header) Merges the cookies contained in the specified http response header
into the set of cookies being managed by this object. |
public String | toString() Returns the string representation of the headers/cookies being managed
by this object as an http cookie response header (i.e. |