com.jayway.restassured.specification
Interface LogSpecification<T extends RequestSender>

All Known Subinterfaces:
RequestLogSpecification, ResponseLogSpecification
All Known Implementing Classes:
RequestLogSpecificationImpl, ResponseLogSpecificationImpl

public interface LogSpecification<T extends RequestSender>

Base interface for request- and response log specifications.


Method Summary
 T all()
          Logs everything in the specification, including e.g.
 T all(boolean shouldPrettyPrint)
          Logs everything in the specification, including e.g.
 T body()
          Logs only the content of the body.
 T body(boolean shouldPrettyPrint)
          Logs only the content of the body and pretty-print the body if specified.
 T cookies()
          Logs only the cookies.
 T everything()
          Logs everything in the specification, including e.g.
 T everything(boolean shouldPrettyPrint)
          Logs everything in the specification, including e.g.
 T headers()
          Logs only the headers.
 

Method Detail

body

T body()
Logs only the content of the body. The body will be pretty-printed by default if content-type is either XML, JSON or HTML.

Returns:
The specification

body

T body(boolean shouldPrettyPrint)
Logs only the content of the body and pretty-print the body if specified. Note that pretty-printing can only take place if the content-type is either XML, JSON or HTML.

Parameters:
shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
Returns:
The specification

all

T all()
Logs everything in the specification, including e.g. headers, cookies, body. Pretty-prints the body if content-type is either either XML, JSON or HTML..

Returns:
The specification

all

T all(boolean shouldPrettyPrint)
Logs everything in the specification, including e.g. headers, cookies, body with the option to pretty-print the body if the content-type is either XML, JSON or HTML..

Parameters:
shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
Returns:
The specification

everything

T everything()
Logs everything in the specification, including e.g. headers, cookies, body. Pretty-prints the body if content-type is either either XML, JSON or HTML..

Returns:
The specification

everything

T everything(boolean shouldPrettyPrint)
Logs everything in the specification, including e.g. headers, cookies, body with the option to pretty-print the body if the content-type is either XML, JSON or HTML..

Parameters:
shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
Returns:
The specification

headers

T headers()
Logs only the headers.

Returns:
The specification

cookies

T cookies()
Logs only the cookies.

Returns:
The specification


Copyright © 2010-2012. All Rights Reserved.