public class ResponseDecorated
extends com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>
implements com.jayway.restassured.response.Response
| Constructor and Description |
|---|
ResponseDecorated(com.jayway.restassured.response.Response core) |
| Modifier and Type | Method and Description |
|---|---|
com.jayway.restassured.response.Response |
andReturn() |
<T> T |
as(java.lang.Class<T> cls) |
<T> T |
as(java.lang.Class<T> cls,
com.jayway.restassured.mapper.ObjectMapper mapper) |
<T> T |
as(java.lang.Class<T> cls,
com.jayway.restassured.internal.mapper.ObjectMapperType mapperType) |
byte[] |
asByteArray() |
java.io.InputStream |
asInputStream() |
java.lang.String |
asString() |
com.jayway.restassured.response.ResponseBody |
body() |
java.lang.String |
contentType() |
java.lang.String |
cookie(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
cookies() |
com.jayway.restassured.response.Cookie |
detailedCookie(java.lang.String name) |
com.jayway.restassured.response.Cookies |
detailedCookies() |
com.jayway.restassured.response.ResponseBody |
getBody() |
java.lang.String |
getContentType() |
java.lang.String |
getCookie(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getCookies() |
com.jayway.restassured.response.Cookie |
getDetailedCookie(java.lang.String name) |
com.jayway.restassured.response.Cookies |
getDetailedCookies() |
java.lang.String |
getHeader(java.lang.String name) |
com.jayway.restassured.response.Headers |
getHeaders() |
java.lang.String |
getSessionId() |
int |
getStatusCode() |
java.lang.String |
getStatusLine() |
java.lang.String |
header(java.lang.String name) |
com.jayway.restassured.response.Headers |
headers() |
com.jayway.restassured.path.xml.XmlPath |
htmlPath() |
com.jayway.restassured.path.json.JsonPath |
jsonPath() |
com.jayway.restassured.path.json.JsonPath |
jsonPath(com.jayway.restassured.path.json.config.JsonPathConfig config) |
<T> T |
path(java.lang.String path,
java.lang.String... arguments) |
com.jayway.restassured.response.Response |
peek() |
com.jayway.restassured.response.Response |
prettyPeek() |
java.lang.String |
prettyPrint() |
java.lang.String |
print() |
java.lang.String |
sessionId() |
int |
statusCode() |
java.lang.String |
statusLine() |
com.jayway.restassured.response.ValidatableResponse |
then() |
com.jayway.restassured.response.Response |
thenReturn() |
com.jayway.restassured.path.xml.XmlPath |
xmlPath() |
com.jayway.restassured.path.xml.XmlPath |
xmlPath(com.jayway.restassured.path.xml.XmlPath.CompatibilityMode compatibilityMode) |
com.jayway.restassured.path.xml.XmlPath |
xmlPath(com.jayway.restassured.path.xml.config.XmlPathConfig config) |
asString, getConfig, getConnectionManager, getContent, getDefaultCharset, getDefaultContentType, getGroovyResponse, getHasExpectations, getLogRepository, getResponseHeaders, getRpr, getSessionIdName, response, setConfig, setConnectionManager, setContent, setContentType, setCookies, setDefaultCharset, setDefaultContentType, setGroovyResponse, setHasExpectations, setLogRepository, setResponseHeaders, setRpr, setSessionIdName, setStatusCode, setStatusLinepublic ResponseDecorated(com.jayway.restassured.response.Response core)
public com.jayway.restassured.response.ValidatableResponse then()
then in interface com.jayway.restassured.response.Responsepublic java.lang.String print()
print in interface com.jayway.restassured.response.ResponseBody<com.jayway.restassured.response.Response>print in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String prettyPrint()
prettyPrint in interface com.jayway.restassured.response.ResponseBody<com.jayway.restassured.response.Response>prettyPrint in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Response peek()
peek in interface com.jayway.restassured.response.ResponseBody<com.jayway.restassured.response.Response>peek in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Response prettyPeek()
prettyPeek in interface com.jayway.restassured.response.ResponseBody<com.jayway.restassured.response.Response>prettyPeek in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public <T> T as(java.lang.Class<T> cls)
as in interface com.jayway.restassured.response.ResponseBodyExtractionOptionsas in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public <T> T as(java.lang.Class<T> cls,
com.jayway.restassured.internal.mapper.ObjectMapperType mapperType)
as in interface com.jayway.restassured.response.ResponseBodyExtractionOptionsas in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public <T> T as(java.lang.Class<T> cls,
com.jayway.restassured.mapper.ObjectMapper mapper)
as in interface com.jayway.restassured.response.ResponseBodyExtractionOptionsas in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.path.json.JsonPath jsonPath()
jsonPath in interface com.jayway.restassured.response.ResponseBodyExtractionOptionsjsonPath in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.path.json.JsonPath jsonPath(com.jayway.restassured.path.json.config.JsonPathConfig config)
jsonPath in interface com.jayway.restassured.response.ResponseBodyExtractionOptionsjsonPath in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.path.xml.XmlPath xmlPath()
xmlPath in interface com.jayway.restassured.response.ResponseBodyExtractionOptionsxmlPath in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.path.xml.XmlPath xmlPath(com.jayway.restassured.path.xml.config.XmlPathConfig config)
xmlPath in interface com.jayway.restassured.response.ResponseBodyExtractionOptionsxmlPath in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.path.xml.XmlPath xmlPath(com.jayway.restassured.path.xml.XmlPath.CompatibilityMode compatibilityMode)
xmlPath in interface com.jayway.restassured.response.ResponseBodyExtractionOptionsxmlPath in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.path.xml.XmlPath htmlPath()
htmlPath in interface com.jayway.restassured.response.ResponseBodyExtractionOptionshtmlPath in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public <T> T path(java.lang.String path,
java.lang.String... arguments)
path in interface com.jayway.restassured.response.ResponseBodyExtractionOptionspath in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String asString()
asString in interface com.jayway.restassured.response.ResponseBodyDataasString in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public byte[] asByteArray()
asByteArray in interface com.jayway.restassured.response.ResponseBodyDataasByteArray in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.io.InputStream asInputStream()
asInputStream in interface com.jayway.restassured.response.ResponseBodyDataasInputStream in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Response andReturn()
andReturn in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>andReturn in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Response thenReturn()
thenReturn in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>thenReturn in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.ResponseBody body()
body in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>body in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>body in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.ResponseBody getBody()
getBody in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getBody in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Headers headers()
headers in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>headers in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>headers in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Headers getHeaders()
getHeaders in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getHeaders in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String header(java.lang.String name)
header in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>header in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>header in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String getHeader(java.lang.String name)
getHeader in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getHeader in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.util.Map<java.lang.String,java.lang.String> cookies()
cookies in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>cookies in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>cookies in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Cookies detailedCookies()
detailedCookies in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>detailedCookies in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>detailedCookies in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.util.Map<java.lang.String,java.lang.String> getCookies()
getCookies in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getCookies in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Cookies getDetailedCookies()
getDetailedCookies in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getDetailedCookies in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String cookie(java.lang.String name)
cookie in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>cookie in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>cookie in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String getCookie(java.lang.String name)
getCookie in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getCookie in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Cookie detailedCookie(java.lang.String name)
detailedCookie in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>detailedCookie in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>detailedCookie in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public com.jayway.restassured.response.Cookie getDetailedCookie(java.lang.String name)
getDetailedCookie in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getDetailedCookie in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String contentType()
contentType in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>contentType in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>contentType in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String getContentType()
getContentType in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getContentType in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String statusLine()
statusLine in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>statusLine in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>statusLine in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String getStatusLine()
getStatusLine in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getStatusLine in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String sessionId()
sessionId in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>sessionId in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>sessionId in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public java.lang.String getSessionId()
getSessionId in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getSessionId in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public int statusCode()
statusCode in interface com.jayway.restassured.response.ExtractableResponse<com.jayway.restassured.response.Response>statusCode in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>statusCode in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>public int getStatusCode()
getStatusCode in interface com.jayway.restassured.response.ResponseOptions<com.jayway.restassured.response.Response>getStatusCode in class com.jayway.restassured.internal.RestAssuredResponseOptionsImpl<com.jayway.restassured.response.Response>