Example usage for java.net ResponseCache subclass-usage

List of usage examples for java.net ResponseCache subclass-usage

Introduction

In this page you can find the example usage for java.net ResponseCache subclass-usage.

Usage

From source file android.net.http.HttpResponseCache.java

/**
 * Caches HTTP and HTTPS responses to the filesystem so they may be reused,
 * saving time and bandwidth. This class supports {@link HttpURLConnection} and
 * {@link HttpsURLConnection}; there is no platform-provided cache for {@link
 * DefaultHttpClient} or {@link AndroidHttpClient}.
 *

From source file org.appcelerator.titanium.util.TiResponseCache.java

public class TiResponseCache extends ResponseCache {
    private static final String TAG = "TiResponseCache";

    private static final String HEADER_SUFFIX = ".hdr";
    private static final String BODY_SUFFIX = ".bdy";
    private static final String CACHE_SIZE_KEY = "ti.android.cache.size.max";