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 body()
          Logs only the content of the body.
 RequestSpecification cookies()
          Logs only the cookies.
 RequestSpecification everything()
          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
 
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.

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

all

public RequestSpecification all()
Description copied from interface: LogSpecification
Logs everything in the specification, including e.g. headers, cookies, body.

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.

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-2011. All Rights Reserved.