IT. Expert System.

Android Reference

ResponseCache


java.net

Class ResponseCache

    • Constructor Detail

      • ResponseCache

        public ResponseCache()
    • Method Detail

      • getDefault

        public static ResponseCache getDefault()
        Returns the system's default response cache, or null.
      • setDefault

        public static void setDefault(ResponseCache responseCache)
        Sets the system's default response cache. Use null to remove the response cache.
      • get

        public abstract CacheResponse get(URI uri,
                        String requestMethod,
                        Map<String,List<String>> requestHeaders)
                                   throws IOException
        Returns the cached response corresponding to the given request.
        Parameters:
        uri - the request URI.
        requestMethod - the request method.
        requestHeaders - a map of request headers.
        Returns:
        the CacheResponse object if the request is available in the cache or null otherwise.
        Throws:
        IOException - if an I/O error occurs while getting the cached data.
        IllegalArgumentException - if any one of the parameters is set to null.
      • put

        public abstract CacheRequest put(URI uri,
                       URLConnection connection)
                                  throws IOException
        Allows the protocol handler to cache data after retrieving resources. The ResponseCache decides whether the resource data should be cached or not. If so, this method returns a CacheRequest to write the resource data to. Otherwise, this method returns null.
        Parameters:
        uri - the reference to the requested resource.
        connection - the connection to fetch the response.
        Returns:
        a CacheRequest object with a WriteableByteChannel if the resource has to be cached, null otherwise.
        Throws:
        IOException - if an I/O error occurs while adding the resource.
        IllegalArgumentException - if any one of the parameters is set to null.


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: 718 / . Delta: 0.14198 с