| 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. generate(String requestId,
        byte[] content)Creates a  Resourcefrom a given response body. | 
| Resource | ResourceFactory. generate(String requestId,
        byte[] content,
        int off,
        int len)Creates a  Resourcefrom a given response body. | 
| Resource | HttpCacheEntry. getResource()Returns the  Resourcecontaining the origin response body. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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)Create a new  HttpCacheEntry. | 
| HttpCacheEntry(Date requestDate,
              Date responseDate,
              int status,
              org.apache.hc.core5.http.Header[] responseHeaders,
              Resource resource,
              Map<String,String> variantMap)Create a new  HttpCacheEntrywith variants. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | FileResourceCache resource backed by a file. | 
| class  | HeapResourceCache resource backed by a byte array on the heap. | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | HeapResourceFactory. copy(String requestId,
    Resource resource) | 
| Resource | FileResourceFactory. copy(String requestId,
    Resource resource) | 
| Resource | HeapResourceFactory. generate(String requestId,
        byte[] content) | 
| Resource | FileResourceFactory. generate(String requestId,
        byte[] content) | 
| 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 | HeapResourceFactory. copy(String requestId,
    Resource resource) | 
| Resource | FileResourceFactory. copy(String requestId,
    Resource resource) | 
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.