com.jayway.restassured.specification
Interface FilterableResponseSpecification
- All Superinterfaces:
- RequestSender, ResponseSpecification
- All Known Implementing Classes:
- ResponseSpecificationImpl
public interface FilterableResponseSpecification
- extends ResponseSpecification
A response specification that also supports getting the defined values. Intended for Filters.
| Methods inherited from interface com.jayway.restassured.specification.ResponseSpecification |
and, body, body, body, content, content, content, contentType, contentType, cookie, cookie, cookie, cookies, cookies, defaultParser, expect, given, header, header, headers, headers, log, parser, request, response, root, rootPath, spec, specification, statusCode, statusCode, statusLine, statusLine, that, then, when, with |
getStatusCode
org.hamcrest.Matcher<Integer> getStatusCode()
- Returns:
- The Hamcrest matcher that needs to be match the status code (may be
null).
getStatusLine
org.hamcrest.Matcher<String> getStatusLine()
- Returns:
- The Hamcrest matcher that needs to be match the status line (may be
null).
hasHeaderAssertions
boolean hasHeaderAssertions()
- Returns:
true if any header assertions are defined
hasCookieAssertions
boolean hasCookieAssertions()
- Returns:
true if any cookie assertions are defined
getResponseContentType
String getResponseContentType()
- Returns:
- The response content type
getRootPath
String getRootPath()
- Returns:
- The body root path when expecting XML or JSON
Copyright © 2010-2011. All Rights Reserved.