Class Overview
This class provides a way to manage cookies with a HTTP protocol handler.
Summary
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
Public Constructors
Public Methods
Gets all cookies for a specific URI from the cookie cache.
Parameters
uri
| a URI to search for applicable cookies. |
requestHeaders
| a list of request headers. |
Returns
- an unchangeable map of all appropriate cookies.
Throws
IOException
| if an error occurs during the I/O operation.
|
public
static
CookieHandler
getDefault
()
Returns the system-wide cookie handler or null
if not set.
Returns
- the system-wide cookie handler.
public
abstract
void
put
(URI uri, Map<String, List<String>> responseHeaders)
Sets all cookies of a specific URI in the responseHeaders
into
the cookie cache.
Parameters
uri
| the origin URI of the cookies. |
responseHeaders
| a list of request headers. |
Throws
IOException
| if an error occurs during the I/O operation.
|
public
static
void
setDefault
(CookieHandler cHandler)
Sets the system-wide cookie handler.
Parameters
cHandler
| a cookie handler to set as the system-wide default handler.
|