public enum RequestStatus extends Enum<RequestStatus>
Enum Constant and Description |
---|
AGGRESSIVELY_CACHED
The request was served from the local cache without
checking with the server and may be out of date
|
CACHED
The request was served directly from the local cache
after checking with the server to see if it was still
up to date
|
ERROR_ON_SERVER
The server returned an error
|
SEND_TO_SERVER
The request was sent to the server
|
Modifier and Type | Method and Description |
---|---|
static RequestStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestStatus SEND_TO_SERVER
public static final RequestStatus CACHED
public static final RequestStatus AGGRESSIVELY_CACHED
public static final RequestStatus ERROR_ON_SERVER
public static RequestStatus[] values()
for (RequestStatus c : RequestStatus.values()) System.out.println(c);
public static RequestStatus 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 nullCopyright © 2016. All Rights Reserved.