## Uses of Class
org.apache.hc.client5.http.cache.Resource

- Packages that use Resource
  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.

- - ### Uses of Resource in org.apache.hc.client5.http.cache

    Methods in org.apache.hc.client5.http.cache that return Resource
    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.

    Methods in org.apache.hc.client5.http.cache with parameters of type Resource
    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`.

    Constructors in org.apache.hc.client5.http.cache with parameters of type Resource
    Constructor and Description
    `HttpCacheEntry(Date requestDate, Date responseDate, int status, org.apache.hc.core5.http.Header[] responseHeaders, Resource resource)` Deprecated. Use {`HttpCacheEntryFactory`
    `HttpCacheEntry(Date requestDate, Date responseDate, int status, org.apache.hc.core5.http.Header[] responseHeaders, Resource resource, Map<String,String> variantMap)` Deprecated. Use {`HttpCacheEntryFactory`
    `HttpCacheEntry(Instant requestDate, Instant responseDate, int status, org.apache.hc.core5.http.Header[] responseHeaders, Resource resource)` Deprecated. Use {`HttpCacheEntryFactory`
    `HttpCacheEntry(Instant requestDate, Instant responseDate, int status, org.apache.hc.core5.http.Header[] responseHeaders, Resource resource, Map<String,String> variantMap)` Deprecated. Use {`HttpCacheEntryFactory`
    `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.

  - ### Uses of Resource in org.apache.hc.client5.http.impl.cache

    Subclasses of Resource in org.apache.hc.client5.http.impl.cache
    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.

    Methods in org.apache.hc.client5.http.impl.cache that return Resource
    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)`

    Methods in org.apache.hc.client5.http.impl.cache with parameters of type Resource
    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.