|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResponseLogSpecification
The response logging specification
| Method Summary | |
|---|---|
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 |
ResponseSpecification |
status()
Logs only the status line (includes the status code) |
| Methods inherited from interface com.jayway.restassured.specification.LogSpecification |
|---|
all, all, body, body, cookies, everything, everything, headers |
| Method Detail |
|---|
ResponseSpecification status()
ResponseSpecification ifError()
ResponseSpecification ifStatusCodeIsEqualTo(int statusCode)
statusCode.
statusCode - The status code
ResponseSpecification ifStatusCodeMatches(org.hamcrest.Matcher<Integer> matcher)
matcher
matcher - The hamcrest matcher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||