Package | Description |
---|---|
org.apache.http.client.cache |
This package consists largely of constants and interfaces that are
necessary for building new storage backends for the
CachingHttpClient or for
those clients wanting to get a little more behavioral information
out of the cache module (for example, whether a particular response
was a cache hit or not). |
org.apache.http.impl.client.cache |
This package contains a cache module that can be used for HTTP/1.1
client-side caching.
|
Modifier and Type | Method and Description |
---|---|
HttpCacheEntry |
HttpCacheStorage.getEntry(String key)
Retrieves the cache entry stored under the given key
or null if no entry exists under that key.
|
HttpCacheEntry |
HttpCacheEntrySerializer.readFrom(InputStream is)
Deserializes a byte representation of a cache entry by reading
from the given
InputStream . |
HttpCacheEntry |
HttpCacheUpdateCallback.update(HttpCacheEntry existing)
Returns the new cache entry that should replace an existing one.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpCacheStorage.putEntry(String key,
HttpCacheEntry entry)
Store a given cache entry under the given key.
|
HttpCacheEntry |
HttpCacheUpdateCallback.update(HttpCacheEntry existing)
Returns the new cache entry that should replace an existing one.
|
void |
HttpCacheEntrySerializer.writeTo(HttpCacheEntry entry,
OutputStream os)
Serializes the given entry to a byte representation on the
given
OutputStream . |
Modifier and Type | Method and Description |
---|---|
HttpCacheEntry |
ManagedHttpCacheStorage.getEntry(String url) |
HttpCacheEntry |
BasicHttpCacheStorage.getEntry(String url)
Gets an entry from the cache, if it exists
|
HttpCacheEntry |
DefaultHttpCacheEntrySerializer.readFrom(InputStream is) |
Modifier and Type | Method and Description |
---|---|
void |
ManagedHttpCacheStorage.putEntry(String url,
HttpCacheEntry entry) |
void |
BasicHttpCacheStorage.putEntry(String url,
HttpCacheEntry entry)
Places a HttpCacheEntry in the cache
|
void |
DefaultHttpCacheEntrySerializer.writeTo(HttpCacheEntry cacheEntry,
OutputStream os) |
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.