com.jayway.restassured.internal
Class RequestLogSpecificationImpl

java.lang.Object
  extended by com.jayway.restassured.internal.LogSpecificationImpl
      extended by com.jayway.restassured.internal.RequestLogSpecificationImpl
All Implemented Interfaces:
LogSpecification<RequestSpecification>, RequestLogSpecification, groovy.lang.GroovyObject

public class RequestLogSpecificationImpl
extends LogSpecificationImpl
implements RequestLogSpecification


Constructor Summary
RequestLogSpecificationImpl()
           
 
Method Summary
 RequestSpecification all()
          Logs everything in the specification, including e.g.
 RequestSpecification all(boolean shouldPrettyPrint)
          Logs everything in the specification, including e.g.
 RequestSpecification body()
          Logs only the content of the body.
 RequestSpecification body(boolean shouldPrettyPrint)
          Logs only the content of the body and pretty-print the body if specified.
 RequestSpecification cookies()
          Logs only the cookies.
 RequestSpecification everything()
          Logs everything in the specification, including e.g.
 RequestSpecification everything(boolean shouldPrettyPrint)
          Logs everything in the specification, including e.g.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 RequestSpecification headers()
          Logs only the headers.
 Object invokeMethod(String method, Object arguments)
           
 RequestSpecification parameters()
          Logs only the parameters of the request.
 RequestSpecification params()
          Logs only the parameters of the request.
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 
Methods inherited from class com.jayway.restassured.internal.LogSpecificationImpl
getPrintStream, shouldPrettyPrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestLogSpecificationImpl

public RequestLogSpecificationImpl()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class LogSpecificationImpl

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class LogSpecificationImpl

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class LogSpecificationImpl

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class LogSpecificationImpl

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class LogSpecificationImpl

params

public RequestSpecification params()
Description copied from interface: RequestLogSpecification
Logs only the parameters of the request. Same as RequestLogSpecification.parameters() but slightly shorter syntax.

Specified by:
params in interface RequestLogSpecification
Returns:
The response specification

parameters

public RequestSpecification parameters()
Description copied from interface: RequestLogSpecification
Logs only the parameters of the request. Same as RequestLogSpecification.params() but more explicit syntax.

Specified by:
parameters in interface RequestLogSpecification
Returns:
The response specification

body

public RequestSpecification body()
Description copied from interface: LogSpecification
Logs only the content of the body. The body will be pretty-printed by default if content-type is either XML, JSON or HTML.

Specified by:
body in interface LogSpecification<RequestSpecification>
Returns:
The specification

body

public RequestSpecification body(boolean shouldPrettyPrint)
Description copied from interface: LogSpecification
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.

Specified by:
body in interface LogSpecification<RequestSpecification>
Parameters:
shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
Returns:
The specification

all

public RequestSpecification all(boolean shouldPrettyPrint)
Description copied from interface: LogSpecification
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..

Specified by:
all in interface LogSpecification<RequestSpecification>
Parameters:
shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
Returns:
The specification

everything

public RequestSpecification everything(boolean shouldPrettyPrint)
Description copied from interface: LogSpecification
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..

Specified by:
everything in interface LogSpecification<RequestSpecification>
Parameters:
shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
Returns:
The specification

all

public RequestSpecification all()
Description copied from interface: LogSpecification
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..

Specified by:
all in interface LogSpecification<RequestSpecification>
Returns:
The specification

everything

public RequestSpecification everything()
Description copied from interface: LogSpecification
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..

Specified by:
everything in interface LogSpecification<RequestSpecification>
Returns:
The specification

headers

public RequestSpecification headers()
Description copied from interface: LogSpecification
Logs only the headers.

Specified by:
headers in interface LogSpecification<RequestSpecification>
Returns:
The specification

cookies

public RequestSpecification cookies()
Description copied from interface: LogSpecification
Logs only the cookies.

Specified by:
cookies in interface LogSpecification<RequestSpecification>
Returns:
The specification


Copyright © 2010-2012. All Rights Reserved.