com.jayway.restassured.filter.log
Enum LogDetail

java.lang.Object
  extended by java.lang.Enum<LogDetail>
      extended by com.jayway.restassured.filter.log.LogDetail
All Implemented Interfaces:
Serializable, Comparable<LogDetail>

public enum LogDetail
extends Enum<LogDetail>

The different log details. Determine what should be logged in a request or response.


Enum Constant Summary
ALL
          Logs everything
BODY
          Log on the body
COOKIES
          Log only cookies
HEADERS
          Log only headers
PARAMS
          Logs only the request parameters (only works for requests)
STATUS
          Log only the status line (works only for responses).
 
Method Summary
static LogDetail valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LogDetail[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALL

public static final LogDetail ALL
Logs everything


HEADERS

public static final LogDetail HEADERS
Log only headers


COOKIES

public static final LogDetail COOKIES
Log only cookies


BODY

public static final LogDetail BODY
Log on the body


STATUS

public static final LogDetail STATUS
Log only the status line (works only for responses).


PARAMS

public static final LogDetail PARAMS
Logs only the request parameters (only works for requests)

Method Detail

values

public static LogDetail[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LogDetail c : LogDetail.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LogDetail valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010-2011. All Rights Reserved.