public static enum RestAdapter.LogLevel extends Enum<RestAdapter .LogLevel >
| Enum Constant and Description |
|---|
BASIC
Log only the request method and URL and the response status code and execution time.
|
FULL
Log the headers, body, and metadata for both requests and responses.
|
HEADERS
Log the basic information along with request and response headers.
|
HEADERS_AND_ARGS
Log the basic information along with request and response objects via toString().
|
NONE
No logging.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
log()
|
static RestAdapter |
valueOf(String
Returns the enum constant of this type with the specified name.
|
static RestAdapter |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final RestAdapter.LogLevel NONE
public static final RestAdapter.LogLevel BASIC
public static final RestAdapter.LogLevel HEADERS
public static final RestAdapter.LogLevel HEADERS_AND_ARGS
public static final RestAdapter.LogLevel FULL
Note: This requires that the entire request and response body be buffered in memory!
public static RestAdapter.LogLevel [] values()
for (RestAdapter.LogLevel c : RestAdapter.LogLevel.values()) System.out.println(c);
public static RestAdapter.LogLevel valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
public boolean log()