CacheRequestpublic abstract class CacheRequest extends Object {@code CacheRequest} is a kind of channel for storing resource data in the
{@code ResponseCache}. A protocol handler calls the {@code OutputStream}
which is provided by the {@code CacheRequest} object, to store the resource
data into the cache. It also allows the user to interrupt and abort the
current store operation by calling the method {@code abort}. If an {@code
IOException} occurs while reading the response or writing data to the cache,
the current cache store operation is abandoned. |
Constructors Summary |
---|
public CacheRequest()This implementation does nothing.
super();
|
Methods Summary |
---|
public abstract void | abort()Aborts the current cache operation. If an {@code IOException} occurs
while reading the response or writing resource data to the cache, the
current cache store operation is aborted.
| public abstract java.io.OutputStream | getBody()Returns an {@code OutputStream} which is used to write the response body.
|
|