java.lang.Object | |
↳ | android.webkit.CacheManager |
The class CacheManager provides the persistent cache of content that is received over the network. The component handles parsing of HTTP headers and utilizes the relevant cache headers to determine if the content should be stored and if so, how long it is valid for. Network requests are provided to this component and if they can not be resolved by the cache, the HTTP headers are attached, as appropriate, to the request for revalidation of content. The class also manages the cache size.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CacheManager.CacheResult |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
get the state of the current cache, enabled or disabled
| |||||||||||
Given a url, returns the CacheResult if exists.
| |||||||||||
get the base directory of the cache.
| |||||||||||
Save the info of a cache file for a given url to the CacheMap so that it
can be reused later
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
get the state of the current cache, enabled or disabled
Given a url, returns the CacheResult if exists. Otherwise returns null. If headers are provided and a cache needs validation, HEADER_KEY_IFNONEMATCH or HEADER_KEY_IFMODIFIEDSINCE will be set in the cached headers.
get the base directory of the cache. With localPath of the CacheResult, it identifies the cache file.
Save the info of a cache file for a given url to the CacheMap so that it can be reused later