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)
Deprecated.
Do not use.
|
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. |
default Resource |
ResourceFactory.generate(String requestId,
String eTag,
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. |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceFactory.copy(String requestId,
Resource resource)
Deprecated.
Do not use.
|
HttpCacheEntry |
HttpCacheEntryFactory.create(Instant requestInstant,
Instant responseInstant,
org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.HttpResponse response,
Resource resource)
Create a new
HttpCacheEntry with the given Resource . |
Constructor and Description |
---|
HttpCacheEntry(Date requestDate,
Date responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource)
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)
Deprecated.
|
HttpCacheEntry(Instant requestDate,
Instant responseDate,
int status,
org.apache.hc.core5.http.Header[] responseHeaders,
Resource resource,
Map<String,String> variantMap)
Deprecated.
|
HttpCacheEntry(Instant requestDate,
Instant responseDate,
String method,
String requestURI,
org.apache.hc.core5.http.message.HeaderGroup requestHeaders,
int status,
org.apache.hc.core5.http.message.HeaderGroup responseHeaders,
Resource resource,
Collection<String> variants)
Internal constructor that makes no validation of the input parameters and makes
no copies of the original client request and the origin response.
|
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)
Deprecated.
Do not use.
|
Resource |
HeapResourceFactory.copy(String requestId,
Resource resource)
Deprecated.
Do not use.
|
Resource |
FileResourceFactory.generate(String requestId,
byte[] content) |
Resource |
HeapResourceFactory.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 |
FileResourceFactory.generate(String requestId,
String eTag,
byte[] content,
int off,
int len) |
Modifier and Type | Method and Description |
---|---|
Resource |
FileResourceFactory.copy(String requestId,
Resource resource)
Deprecated.
Do not use.
|
Resource |
HeapResourceFactory.copy(String requestId,
Resource resource)
Deprecated.
Do not use.
|
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.