Package | Description |
---|---|
org.apache.hc.client5.http.cache |
Caching APIs for both the classic and the asynchronous
HTTP transports.
|
org.apache.hc.client5.http.impl.cache |
Caching API implementation for both the classic and
the asynchronous HTTP transports.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceFactory.copy(String requestId,
Resource resource)
Clones an existing
Resource . |
Resource |
ResourceFactory.copy(String requestId,
Resource resource)
Clones an existing
Resource . |
Resource |
ResourceFactory.generate(String requestId,
byte[] content)
Creates a
Resource from a given response body. |
Resource |
ResourceFactory.generate(String requestId,
byte[] content)
Creates a
Resource from a given response body. |
Resource |
ResourceFactory.generate(String requestId,
byte[] content,
int off,
int len)
Creates a
Resource from a given response body. |
Resource |
ResourceFactory.generate(String requestId,
byte[] content,
int off,
int len)
Creates a
Resource from a given response body. |
Resource |
HttpCacheEntry.getResource()
Returns the
Resource containing the origin response body. |
Resource |
HttpCacheEntry.getResource()
Returns the
Resource containing the origin response body. |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceFactory.copy(String requestId,
Resource resource)
Clones an existing
Resource . |
Resource |
ResourceFactory.copy(String requestId,
Resource resource)
Clones an existing
Resource . |
Constructor and Description |
---|
HttpCacheEntry(Date requestDate,
Date responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource)
|
HttpCacheEntry(Date requestDate,
Date responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource)
|
HttpCacheEntry(Date requestDate,
Date responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource,
Map<String,String> variantMap)
Deprecated.
|
HttpCacheEntry(Date requestDate,
Date responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource,
Map<String,String> variantMap)
Deprecated.
|
HttpCacheEntry(Instant requestDate,
Instant responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource)
Create a new
HttpCacheEntry . |
HttpCacheEntry(Instant requestDate,
Instant responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource)
Create a new
HttpCacheEntry . |
HttpCacheEntry(Instant requestDate,
Instant responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource,
Map<String,String> variantMap)
Create a new
HttpCacheEntry with variants. |
HttpCacheEntry(Instant requestDate,
Instant responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource,
Map<String,String> variantMap)
Create a new
HttpCacheEntry with variants. |
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 | Method and Description |
---|---|
Resource |
FileResourceFactory.copy(String requestId,
Resource resource) |
Resource |
HeapResourceFactory.copy(String requestId,
Resource resource) |
Resource |
HeapResourceFactory.copy(String requestId,
Resource resource) |
Resource |
FileResourceFactory.copy(String requestId,
Resource resource) |
Resource |
FileResourceFactory.generate(String requestId,
byte[] content) |
Resource |
HeapResourceFactory.generate(String requestId,
byte[] content) |
Resource |
HeapResourceFactory.generate(String requestId,
byte[] content) |
Resource |
FileResourceFactory.generate(String requestId,
byte[] content) |
Resource |
FileResourceFactory.generate(String requestId,
byte[] content,
int off,
int len) |
Resource |
HeapResourceFactory.generate(String requestId,
byte[] content,
int off,
int len) |
Resource |
HeapResourceFactory.generate(String requestId,
byte[] content,
int off,
int len) |
Resource |
FileResourceFactory.generate(String requestId,
byte[] content,
int off,
int len) |
Modifier and Type | Method and Description |
---|---|
Resource |
FileResourceFactory.copy(String requestId,
Resource resource) |
Resource |
HeapResourceFactory.copy(String requestId,
Resource resource) |
Resource |
HeapResourceFactory.copy(String requestId,
Resource resource) |
Resource |
FileResourceFactory.copy(String requestId,
Resource resource) |
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.