Stay organized with collections
Save and categorize content based on your preferences.
CacheResponse
abstract class CacheResponse
Known Direct Subclasses
SecureCacheResponse |
Represents a cache response originally retrieved through secure means, such as TLS.
|
|
Represent channels for retrieving resources from the ResponseCache. Instances of such a class provide an InputStream that returns the entity body, and also a getHeaders() method which returns the associated response headers.
Summary
Public constructors
CacheResponse
CacheResponse()
Public methods
getBody
abstract fun getBody(): InputStream!
Returns the response body as an InputStream.
Return |
InputStream! |
an InputStream from which the response body can be accessed |
Exceptions |
java.io.IOException |
if an I/O error occurs while getting the response body |
abstract fun getHeaders(): MutableMap<String!, MutableList<String!>!>!
Returns the response headers as a Map.
Return |
MutableMap<String!, MutableList<String!>!>! |
An immutable Map from response header field names to lists of field values. The status line has null as its field name. |
Exceptions |
java.io.IOException |
if an I/O error occurs while getting the response headers |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]