IT. Expert System.

Android Reference

CacheResponse


java.net

Class CacheResponse

  • Direct Known Subclasses:
    SecureCacheResponse


    public abstract class CacheResponse
    extends Object
    A response cache entry. A CacheResponse object provides an InputStream to access the response body and a Map for the response headers.
    See Also:
    ResponseCache
    • Constructor Detail

      • CacheResponse

        public CacheResponse()
    • Method Detail

      • getBody

        public abstract InputStream getBody()
                                     throws IOException
        Returns an InputStream to access the response body.
        Returns:
        an InputStream which can be used to fetch the response body.
        Throws:
        IOException - if an I/O error is encountered while retrieving the response body.
      • getHeaders

        public abstract Map<String,List<String>> getHeaders()
                                                     throws IOException
        Returns an immutable Map which contains the response headers information. Note that URLConnection may need the original headers to be able to fully reconstruct the response. In particular, failure to provide a mapping from null to the original HTTP status line will prevent an HttpURLConnection from returning the correct response code. See URLConnection.getHeaderFields().
        Returns:
        an immutable Map which contains the response headers.
        Throws:
        IOException - if an I/O error is encountered while retrieving the response headers.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 472 / . Delta: 0.01747 с