类的使用
com.android.volley.Cache.Entry
使用Cache.Entry的程序包
-
com.android.volley中Cache.Entry的使用
声明为Cache.Entry的com.android.volley中的字段修饰符和类型字段说明final Cache.EntryResponse.cacheEntryCache metadata for this response, or null in the case of error.修饰符和类型方法说明Retrieves an entry from the cache.Request.getCacheEntry()Returns the annotated cache entry, or null if there isn't one.参数类型为Cache.Entry的com.android.volley中的方法修饰符和类型方法说明voidCache.put(String key, Cache.Entry entry) Adds or replaces an entry to the cache.Request<?>Request.setCacheEntry(Cache.Entry entry) Annotates this request with an entry retrieved for it from cache.static <T> Response<T>Response.success(T result, Cache.Entry cacheEntry) Returns a successful response containing the parsed result. -
com.android.volley.toolbox中Cache.Entry的使用
修饰符和类型方法说明Returns the cache entry with the specified key if it exists, null otherwise.static Cache.EntryHttpHeaderParser.parseCacheHeaders(NetworkResponse response) Extracts aCache.Entryfrom aNetworkResponse.参数类型为Cache.Entry的com.android.volley.toolbox中的方法修饰符和类型方法说明voidDiskBasedCache.put(String key, Cache.Entry entry) Puts the entry with the specified key into the cache.voidNoCache.put(String key, Cache.Entry entry)