public class CacheInterceptor extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
cacheControlValue_Offline |
protected String |
cacheControlValue_Online |
protected android.content.Context |
context |
protected static int |
maxStale |
protected static int |
maxStaleOnline |
| 构造器和说明 |
|---|
CacheInterceptor(android.content.Context context) |
CacheInterceptor(android.content.Context context,
String cacheControlValue) |
CacheInterceptor(android.content.Context context,
String cacheControlValueOffline,
String cacheControlValueOnline) |
protected android.content.Context context
protected String cacheControlValue_Offline
protected String cacheControlValue_Online
protected static final int maxStale
protected static final int maxStaleOnline
public CacheInterceptor(android.content.Context context)
public CacheInterceptor(android.content.Context context,
String cacheControlValue)
public okhttp3.Response intercept(Chain chain)
throws IOException
IOException