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 | Field and Description |
---|---|
private Resource |
HttpCacheEntry.resource |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceFactory.copy(java.lang.String requestId,
Resource resource)
Clones an existing
Resource . |
Resource |
ResourceFactory.generate(java.lang.String requestId,
java.io.InputStream instream,
InputLimit limit)
Creates a
Resource from a given response body. |
Resource |
HttpCacheEntry.getResource()
Returns the
Resource containing the origin response body. |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceFactory.copy(java.lang.String requestId,
Resource resource)
Clones an existing
Resource . |
Constructor and Description |
---|
HttpCacheEntry(java.util.Date requestDate,
java.util.Date responseDate,
org.apache.http.StatusLine statusLine,
org.apache.http.Header[] responseHeaders,
Resource resource)
Create a new
HttpCacheEntry . |
HttpCacheEntry(java.util.Date requestDate,
java.util.Date responseDate,
org.apache.http.StatusLine statusLine,
org.apache.http.Header[] responseHeaders,
Resource resource,
java.util.Map<java.lang.String,java.lang.String> variantMap)
Create a new
HttpCacheEntry with variants. |
HttpCacheEntry(java.util.Date requestDate,
java.util.Date responseDate,
org.apache.http.StatusLine statusLine,
org.apache.http.Header[] responseHeaders,
Resource resource,
java.util.Map<java.lang.String,java.lang.String> variantMap,
java.lang.String requestMethod)
Create a new
HttpCacheEntry with variants. |
HttpCacheEntry(java.util.Date requestDate,
java.util.Date responseDate,
org.apache.http.StatusLine statusLine,
org.apache.http.Header[] responseHeaders,
Resource resource,
java.lang.String requestMethod)
Create a new
HttpCacheEntry . |
Modifier and Type | Class and Description |
---|---|
class |
FileResource
Cache resource backed by a file.
|
class |
HeapResource
Cache resource backed by a byte array on the heap.
|
Modifier and Type | Field and Description |
---|---|
private Resource |
ResourceReference.resource |
private Resource |
SizeLimitedResponseReader.resource |
private Resource |
CombinedEntity.resource |
Modifier and Type | Method and Description |
---|---|
Resource |
FileResourceFactory.copy(java.lang.String requestId,
Resource resource) |
Resource |
HeapResourceFactory.copy(java.lang.String requestId,
Resource resource) |
(package private) Resource |
HeapResourceFactory.createResource(byte[] buf) |
Resource |
FileResourceFactory.generate(java.lang.String requestId,
java.io.InputStream instream,
InputLimit limit) |
Resource |
HeapResourceFactory.generate(java.lang.String requestId,
java.io.InputStream instream,
InputLimit limit) |
Resource |
ResourceReference.getResource() |
(package private) Resource |
SizeLimitedResponseReader.getResource() |
Modifier and Type | Method and Description |
---|---|
Resource |
FileResourceFactory.copy(java.lang.String requestId,
Resource resource) |
Resource |
HeapResourceFactory.copy(java.lang.String requestId,
Resource resource) |
(package private) CloseableHttpResponse |
BasicHttpCache.generateIncompleteResponseError(org.apache.http.HttpResponse response,
Resource resource) |
(package private) boolean |
BasicHttpCache.isIncompleteResponse(org.apache.http.HttpResponse resp,
Resource resource) |
Constructor and Description |
---|
CombinedEntity(Resource resource,
java.io.InputStream instream) |