|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.restassured.internal.LogSpecificationImpl
com.jayway.restassured.internal.ResponseLogSpecificationImpl
public class ResponseLogSpecificationImpl
| Constructor Summary | |
|---|---|
ResponseLogSpecificationImpl()
|
|
| Method Summary | |
|---|---|
ResponseSpecification |
all()
Logs everything in the specification, including e.g. |
ResponseSpecification |
all(boolean shouldPrettyPrint)
Logs everything in the specification, including e.g. |
ResponseSpecification |
body()
Logs only the content of the body. |
ResponseSpecification |
body(boolean shouldPrettyPrint)
Logs only the content of the body and pretty-print the body if specified. |
ResponseSpecification |
cookies()
Logs only the cookies. |
ResponseSpecification |
everything()
Logs everything in the specification, including e.g. |
ResponseSpecification |
everything(boolean shouldPrettyPrint)
Logs everything in the specification, including e.g. |
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String property)
|
ResponseSpecification |
headers()
Logs only the headers. |
ResponseSpecification |
ifError()
Logs everything only if an error occurs (status code >= 400). |
ResponseSpecification |
ifStatusCodeIsEqualTo(int statusCode)
Logs everything only if if the status code is equal to statusCode. |
ResponseSpecification |
ifStatusCodeMatches(org.hamcrest.Matcher<Integer> matcher)
Logs everything only if if the status code matches the supplied matcher |
Object |
invokeMethod(String method,
Object arguments)
|
void |
setMetaClass(groovy.lang.MetaClass mc)
|
void |
setProperty(String property,
Object value)
|
ResponseSpecification |
status()
Logs only the status line (includes the status code) |
| 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 |
|---|
public ResponseLogSpecificationImpl()
| Method Detail |
|---|
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 LogSpecificationImpl
public 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 LogSpecificationImpl
public void setProperty(String property,
Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class LogSpecificationImplpublic ResponseSpecification body()
LogSpecification
body in interface LogSpecification<ResponseSpecification>public ResponseSpecification body(boolean shouldPrettyPrint)
LogSpecification
body in interface LogSpecification<ResponseSpecification>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
public ResponseSpecification all()
LogSpecification
all in interface LogSpecification<ResponseSpecification>public ResponseSpecification all(boolean shouldPrettyPrint)
LogSpecification
all in interface LogSpecification<ResponseSpecification>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
public ResponseSpecification everything()
LogSpecification
everything in interface LogSpecification<ResponseSpecification>public ResponseSpecification everything(boolean shouldPrettyPrint)
LogSpecification
everything in interface LogSpecification<ResponseSpecification>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.
public ResponseSpecification headers()
LogSpecification
headers in interface LogSpecification<ResponseSpecification>public ResponseSpecification cookies()
LogSpecification
cookies in interface LogSpecification<ResponseSpecification>public ResponseSpecification status()
ResponseLogSpecification
status in interface ResponseLogSpecificationpublic ResponseSpecification ifError()
ResponseLogSpecification
ifError in interface ResponseLogSpecificationpublic ResponseSpecification ifStatusCodeIsEqualTo(int statusCode)
ResponseLogSpecificationstatusCode.
ifStatusCodeIsEqualTo in interface ResponseLogSpecificationstatusCode - The status code
public ResponseSpecification ifStatusCodeMatches(org.hamcrest.Matcher<Integer> matcher)
ResponseLogSpecificationmatcher
ifStatusCodeMatches in interface ResponseLogSpecificationmatcher - The hamcrest matcher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||