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.
|
org.apache.http.impl.client.cache.ehcache |
This package contains a storage backend based on
Ehcache
that can be plugged into
a
CachingHttpClient and
used for storing cache entries. |
org.apache.http.impl.client.cache.memcached |
This package contains a storage backend based on
memcached
that can be plugged into
a
CachingHttpClient and
used for storing cache entries. |
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) |
Modifier and Type | Method and Description |
---|---|
HttpCacheEntry |
EhcacheHttpCacheStorage.getEntry(String key) |
Modifier and Type | Method and Description |
---|---|
void |
EhcacheHttpCacheStorage.putEntry(String key,
HttpCacheEntry entry) |
Modifier and Type | Method and Description |
---|---|
HttpCacheEntry |
MemcachedHttpCacheStorage.getEntry(String url) |
HttpCacheEntry |
MemcachedCacheEntryImpl.getHttpCacheEntry() |
HttpCacheEntry |
MemcachedCacheEntry.getHttpCacheEntry()
Returns the
HttpCacheEntry associated with this entry. |
Modifier and Type | Method and Description |
---|---|
MemcachedCacheEntry |
MemcachedCacheEntryFactory.getMemcachedCacheEntry(String storageKey,
HttpCacheEntry entry)
Creates a new
MemcachedCacheEntry for storing the
given HttpCacheEntry under the given storage key. |
MemcachedCacheEntry |
MemcachedCacheEntryFactoryImpl.getMemcachedCacheEntry(String key,
HttpCacheEntry entry) |
void |
MemcachedHttpCacheStorage.putEntry(String url,
HttpCacheEntry entry) |
Constructor and Description |
---|
MemcachedCacheEntryImpl(String key,
HttpCacheEntry httpCacheEntry) |
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.