public class RequestLogSpecificationImpl extends LogSpecificationImpl implements RequestLogSpecification, groovy.lang.GroovyObject
| 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.
|
Set |
getBlacklistedHeaders() |
LogRepository |
getLogRepository() |
groovy.lang.MetaClass |
getMetaClass() |
RequestSpecification |
getRequestSpecification() |
RequestSpecification |
headers()
Logs only the headers.
|
RequestSpecification |
ifValidationFails()
Logs everything if a test validation fails.
|
RequestSpecification |
ifValidationFails(LogDetail logDetail)
Logs with the supplied log detail only if the validation fails.
|
RequestSpecification |
ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint)
Logs all parameters only if the validations fail.
|
RequestSpecification |
method()
Only logs the request method.
|
RequestSpecification |
parameters()
Logs only the parameters of the request.
|
RequestSpecification |
params()
Logs only the parameters of the request.
|
void |
setBlacklistedHeaders(Set value) |
void |
setLogRepository(LogRepository value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setRequestSpecification(RequestSpecification value) |
RequestSpecification |
uri()
Only logs the request uri.
|
getPrintStream, shouldPrettyPrint, shouldUrlEncodeRequestUripublic RequestSpecification getRequestSpecification()
public void setRequestSpecification(RequestSpecification value)
public LogRepository getLogRepository()
public void setLogRepository(LogRepository value)
public Set getBlacklistedHeaders()
public void setBlacklistedHeaders(Set value)
public 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 uri()
RequestLogSpecificationuri in interface RequestLogSpecificationpublic RequestSpecification method()
RequestLogSpecificationmethod in interface RequestLogSpecificationpublic RequestSpecification body()
LogSpecificationbody in interface LogSpecification<RequestSpecification>public RequestSpecification body(boolean shouldPrettyPrint)
LogSpecificationbody in interface LogSpecification<RequestSpecification>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification all(boolean shouldPrettyPrint)
LogSpecificationall in interface LogSpecification<RequestSpecification>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification everything(boolean shouldPrettyPrint)
LogSpecificationeverything in interface LogSpecification<RequestSpecification>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification all()
LogSpecificationall in interface LogSpecification<RequestSpecification>public RequestSpecification everything()
LogSpecificationeverything in interface LogSpecification<RequestSpecification>public RequestSpecification headers()
LogSpecificationheaders in interface LogSpecification<RequestSpecification>public RequestSpecification cookies()
LogSpecificationcookies in interface LogSpecification<RequestSpecification>public RequestSpecification ifValidationFails()
LogSpecificationifValidationFails in interface LogSpecification<RequestSpecification>public RequestSpecification ifValidationFails(LogDetail logDetail)
LogSpecificationifValidationFails in interface LogSpecification<RequestSpecification>logDetail - The log detailpublic RequestSpecification ifValidationFails(LogDetail logDetail, boolean shouldPrettyPrint)
LogSpecificationifValidationFails in interface LogSpecification<RequestSpecification>logDetail - The log detailshouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public 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 LogSpecificationImplCopyright © 2010–2020. All rights reserved.