Package net.serenitybdd.rest.decorators
Class ResponseDecorated
java.lang.Object
io.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
net.serenitybdd.rest.decorators.ResponseDecorated
- All Implemented Interfaces:
io.restassured.response.ExtractableResponse<io.restassured.response.Response>,io.restassured.response.Response,io.restassured.response.ResponseBody<io.restassured.response.Response>,io.restassured.response.ResponseBodyData,io.restassured.response.ResponseBodyExtractionOptions,io.restassured.response.ResponseOptions<io.restassured.response.Response>,io.restassured.response.Validatable<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
public class ResponseDecorated
extends io.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
implements io.restassured.response.Response
User: YamStranger
Date: 3/22/16
Time: 10:30 PM
-
Field Summary
Fields inherited from class io.restassured.internal.RestAssuredResponseOptionsImpl
groovyResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.restassured.response.Response<T> Tas(io.restassured.common.mapper.TypeRef<T> typeRef) <T> T<T> T<T> T<T> T<T> T<T> Tbyte[]asString()io.restassured.response.ResponseBodybody()cookies()io.restassured.http.CookiedetailedCookie(String name) io.restassured.http.Cookiesio.restassured.response.ResponseBodygetBody()io.restassured.http.CookiegetDetailedCookie(String name) io.restassured.http.Cookiesio.restassured.http.HeadersintlonggetTime()longio.restassured.http.Headersheaders()io.restassured.path.xml.XmlPathhtmlPath()io.restassured.path.json.JsonPathjsonPath()io.restassured.path.json.JsonPathjsonPath(io.restassured.path.json.config.JsonPathConfig config) <T> Tio.restassured.response.Responsepeek()io.restassured.response.Responseprint()intio.restassured.response.ValidatableResponsethen()io.restassured.response.Responselongtime()longio.restassured.path.xml.XmlPathxmlPath()io.restassured.path.xml.XmlPathxmlPath(io.restassured.path.xml.config.XmlPathConfig config) io.restassured.path.xml.XmlPathxmlPath(io.restassured.path.xml.XmlPath.CompatibilityMode compatibilityMode) Methods inherited from class io.restassured.internal.RestAssuredResponseOptionsImpl
asPrettyString, asString, getConfig, getConnectionManager, getContent, getDecoderConfig, getDefaultContentType, getFilterContextProperties, getGroovyResponse, getHasExpectations, getLogRepository, getResponseHeaders, getRpr, getSessionIdName, isInputStream, response, setConfig, setConnectionManager, setContent, setContentType, setCookies, setDecoderConfig, setDefaultContentType, setFilterContextProperties, setGroovyResponse, setHasExpectations, setLogRepository, setResponseHeaders, setRpr, setSessionIdName, setStatusCode, setStatusLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.restassured.response.ResponseBodyData
asPrettyString
-
Constructor Details
-
ResponseDecorated
public ResponseDecorated(io.restassured.response.Response core)
-
-
Method Details
-
then
public io.restassured.response.ValidatableResponse then()- Specified by:
thenin interfaceio.restassured.response.Validatable<io.restassured.response.ValidatableResponse,io.restassured.response.Response>
-
print
- Specified by:
printin interfaceio.restassured.response.ResponseBody<io.restassured.response.Response>- Overrides:
printin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
prettyPrint
- Specified by:
prettyPrintin interfaceio.restassured.response.ResponseBody<io.restassured.response.Response>- Overrides:
prettyPrintin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
peek
public io.restassured.response.Response peek()- Specified by:
peekin interfaceio.restassured.response.ResponseBody<io.restassured.response.Response>- Overrides:
peekin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
prettyPeek
public io.restassured.response.Response prettyPeek()- Specified by:
prettyPeekin interfaceio.restassured.response.ResponseBody<io.restassured.response.Response>- Overrides:
prettyPeekin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
asin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
asin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
asin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
as
public <T> T as(io.restassured.common.mapper.TypeRef<T> typeRef) - Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
asin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
asin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
asin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
as
- Specified by:
asin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
asin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
jsonPath
public io.restassured.path.json.JsonPath jsonPath()- Specified by:
jsonPathin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
jsonPathin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
jsonPath
public io.restassured.path.json.JsonPath jsonPath(io.restassured.path.json.config.JsonPathConfig config) - Specified by:
jsonPathin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
jsonPathin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
xmlPath
public io.restassured.path.xml.XmlPath xmlPath()- Specified by:
xmlPathin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
xmlPathin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
xmlPath
public io.restassured.path.xml.XmlPath xmlPath(io.restassured.path.xml.config.XmlPathConfig config) - Specified by:
xmlPathin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
xmlPathin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
xmlPath
public io.restassured.path.xml.XmlPath xmlPath(io.restassured.path.xml.XmlPath.CompatibilityMode compatibilityMode) - Specified by:
xmlPathin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
xmlPathin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
htmlPath
public io.restassured.path.xml.XmlPath htmlPath()- Specified by:
htmlPathin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
htmlPathin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
path
- Specified by:
pathin interfaceio.restassured.response.ResponseBodyExtractionOptions- Overrides:
pathin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
asString
- Specified by:
asStringin interfaceio.restassured.response.ResponseBodyData- Overrides:
asStringin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
asByteArray
public byte[] asByteArray()- Specified by:
asByteArrayin interfaceio.restassured.response.ResponseBodyData- Overrides:
asByteArrayin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
asInputStream
- Specified by:
asInputStreamin interfaceio.restassured.response.ResponseBodyData- Overrides:
asInputStreamin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
andReturn
public io.restassured.response.Response andReturn()- Specified by:
andReturnin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
andReturnin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
thenReturn
public io.restassured.response.Response thenReturn()- Specified by:
thenReturnin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
thenReturnin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
body
public io.restassured.response.ResponseBody body()- Specified by:
bodyin interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
bodyin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
bodyin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getBody
public io.restassured.response.ResponseBody getBody()- Specified by:
getBodyin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getBodyin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
headers
public io.restassured.http.Headers headers()- Specified by:
headersin interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
headersin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
headersin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getHeaders
public io.restassured.http.Headers getHeaders()- Specified by:
getHeadersin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getHeadersin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
header
- Specified by:
headerin interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
headerin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
headerin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getHeader
- Specified by:
getHeaderin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getHeaderin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
cookies
- Specified by:
cookiesin interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
cookiesin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
cookiesin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
detailedCookies
public io.restassured.http.Cookies detailedCookies()- Specified by:
detailedCookiesin interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
detailedCookiesin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
detailedCookiesin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getCookies
- Specified by:
getCookiesin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getCookiesin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getDetailedCookies
public io.restassured.http.Cookies getDetailedCookies()- Specified by:
getDetailedCookiesin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getDetailedCookiesin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
cookie
- Specified by:
cookiein interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
cookiein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
cookiein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getCookie
- Specified by:
getCookiein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getCookiein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
detailedCookie
- Specified by:
detailedCookiein interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
detailedCookiein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
detailedCookiein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getDetailedCookie
- Specified by:
getDetailedCookiein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getDetailedCookiein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
contentType
- Specified by:
contentTypein interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
contentTypein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
contentTypein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getContentType
- Specified by:
getContentTypein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getContentTypein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
statusLine
- Specified by:
statusLinein interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
statusLinein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
statusLinein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getStatusLine
- Specified by:
getStatusLinein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getStatusLinein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
sessionId
- Specified by:
sessionIdin interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
sessionIdin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
sessionIdin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getSessionId
- Specified by:
getSessionIdin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getSessionIdin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
statusCode
public int statusCode()- Specified by:
statusCodein interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
statusCodein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
statusCodein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getStatusCodein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
time
public long time()- Specified by:
timein interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
timein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
timein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
timeIn
- Specified by:
timeInin interfaceio.restassured.response.ExtractableResponse<io.restassured.response.Response>- Specified by:
timeInin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
timeInin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getTime
public long getTime()- Specified by:
getTimein interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getTimein classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-
getTimeIn
- Specified by:
getTimeInin interfaceio.restassured.response.ResponseOptions<io.restassured.response.Response>- Overrides:
getTimeInin classio.restassured.internal.RestAssuredResponseOptionsImpl<io.restassured.response.Response>
-