public class RequestLogSpecificationImpl extends LogSpecificationImpl implements RequestLogSpecification
| Constructor and Description |
|---|
RequestLogSpecificationImpl() |
| Modifier and Type | Method and Description |
|---|---|
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) |
getPrintStream, shouldPrettyPrintpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class LogSpecificationImplpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class LogSpecificationImplpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class LogSpecificationImplpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class LogSpecificationImplpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class LogSpecificationImplpublic RequestSpecification params()
RequestLogSpecificationRequestLogSpecification.parameters() but slightly shorter syntax.params in interface RequestLogSpecificationpublic RequestSpecification parameters()
RequestLogSpecificationRequestLogSpecification.params() but more explicit syntax.parameters in interface RequestLogSpecificationpublic RequestSpecification body()
LogSpecificationbody in interface LogSpecification<RequestSpecification,Response>public RequestSpecification body(boolean shouldPrettyPrint)
LogSpecificationbody in interface LogSpecification<RequestSpecification,Response>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification all(boolean shouldPrettyPrint)
LogSpecificationall in interface LogSpecification<RequestSpecification,Response>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification everything(boolean shouldPrettyPrint)
LogSpecificationeverything in interface LogSpecification<RequestSpecification,Response>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification all()
LogSpecificationall in interface LogSpecification<RequestSpecification,Response>public RequestSpecification everything()
LogSpecificationeverything in interface LogSpecification<RequestSpecification,Response>public RequestSpecification headers()
LogSpecificationheaders in interface LogSpecification<RequestSpecification,Response>public RequestSpecification cookies()
LogSpecificationcookies in interface LogSpecification<RequestSpecification,Response>Copyright © 2010–2014. All rights reserved.