networkResponse()
and cacheResponse()
to compute how the
request was satisfied.@Deprecated public enum ResponseSource extends Enum<ResponseSource>
Enum Constant and Description |
---|
CACHE
Deprecated.
The response was returned from the local cache.
|
CONDITIONAL_CACHE
Deprecated.
The response is available in the cache but must be validated with the
network.
|
NETWORK
Deprecated.
The response was returned from the network.
|
NONE
Deprecated.
The request demanded a cached response that the cache couldn't satisfy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
requiresConnection()
Deprecated.
|
boolean |
usesCache()
Deprecated.
|
static ResponseSource |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ResponseSource[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseSource CACHE
public static final ResponseSource CONDITIONAL_CACHE
public static final ResponseSource NETWORK
public static final ResponseSource NONE
public static ResponseSource[] values()
for (ResponseSource c : ResponseSource.values()) System.out.println(c);
public static ResponseSource valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean requiresConnection()
public boolean usesCache()
Copyright © 2014. All Rights Reserved.