diff options
| author | Neil Fuller <nfuller@google.com> | 2015-01-20 15:24:35 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-20 15:24:35 +0000 |
| commit | aa3a45ba5bc78ab4015a1d2c4c361d3f54118d8e (patch) | |
| tree | 4febc88ebfd602c65d3e6bd464a7326e229ff037 /core/java/android/net/http | |
| parent | 7382c02d6204806c0462a98ea4e3524007f1fc86 (diff) | |
| parent | 42c2ac00e6e6e8fcfd15dcfbc6d70eabc709d904 (diff) | |
| download | frameworks_base-aa3a45ba5bc78ab4015a1d2c4c361d3f54118d8e.zip frameworks_base-aa3a45ba5bc78ab4015a1d2c4c361d3f54118d8e.tar.gz frameworks_base-aa3a45ba5bc78ab4015a1d2c4c361d3f54118d8e.tar.bz2 | |
am 42c2ac00: Merge "Fix for broken docs build."
* commit '42c2ac00e6e6e8fcfd15dcfbc6d70eabc709d904':
Fix for broken docs build.
Diffstat (limited to 'core/java/android/net/http')
| -rw-r--r-- | core/java/android/net/http/HttpResponseCache.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/core/java/android/net/http/HttpResponseCache.java b/core/java/android/net/http/HttpResponseCache.java index c40b1bf..c6c22e7 100644 --- a/core/java/android/net/http/HttpResponseCache.java +++ b/core/java/android/net/http/HttpResponseCache.java @@ -33,15 +33,16 @@ import java.util.Map; /** * 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}. + * saving time and bandwidth. This class supports {@link + * java.net.HttpURLConnection} and {@link javax.net.ssl.HttpsURLConnection}; + * there is no platform-provided cache for {@link + * org.apache.http.impl.client.DefaultHttpClient} or {@link AndroidHttpClient}. * * <h3>Installing an HTTP response cache</h3> * Enable caching of all of your application's HTTP requests by installing the * cache at application startup. For example, this code installs a 10 MiB cache - * in the {@link android.content.Context#getCacheDir() application-specific cache directory} of - * the filesystem}: <pre> {@code + * in the {@link android.content.Context#getCacheDir() application-specific + * cache directory} of the filesystem}: <pre> {@code * protected void onCreate(Bundle savedInstanceState) { * ... * @@ -73,10 +74,10 @@ import java.util.Map; * contain private data.</strong> Although it often has more free space, * external storage is optional and—even if available—can disappear * during use. Retrieve the external cache directory using {@link - * Context#getExternalCacheDir()}. If this method returns null, your application - * should fall back to either not caching or caching on non-external storage. If - * the external storage is removed during use, the cache hit rate will drop to - * zero and ongoing cache reads will fail. + * android.content.Context#getExternalCacheDir()}. If this method returns null, + * your application should fall back to either not caching or caching on + * non-external storage. If the external storage is removed during use, the + * cache hit rate will drop to zero and ongoing cache reads will fail. * * <p>Flushing the cache forces its data to the filesystem. This ensures that * all responses written to the cache will be readable the next time the |
