public class ResponseStub
extends java.lang.Object
implements io.restassured.response.Response
| Constructor and Description |
|---|
ResponseStub() |
| Modifier and Type | Method and Description |
|---|---|
io.restassured.response.Response |
andReturn() |
<T> T |
as(java.lang.Class<T> cls) |
<T> T |
as(java.lang.Class<T> cls,
io.restassured.mapper.ObjectMapper mapper) |
<T> T |
as(java.lang.Class<T> cls,
io.restassured.mapper.ObjectMapperType mapperType) |
byte[] |
asByteArray() |
java.io.InputStream |
asInputStream() |
java.lang.String |
asString() |
io.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() |
io.restassured.http.Cookie |
detailedCookie(java.lang.String name) |
io.restassured.http.Cookies |
detailedCookies() |
io.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() |
io.restassured.http.Cookie |
getDetailedCookie(java.lang.String name) |
io.restassured.http.Cookies |
getDetailedCookies() |
java.lang.String |
getHeader(java.lang.String name) |
io.restassured.http.Headers |
getHeaders() |
java.lang.String |
getSessionId() |
int |
getStatusCode() |
java.lang.String |
getStatusLine() |
long |
getTime() |
long |
getTimeIn(java.util.concurrent.TimeUnit timeUnit) |
java.lang.String |
header(java.lang.String name) |
io.restassured.http.Headers |
headers() |
io.restassured.path.xml.XmlPath |
htmlPath() |
io.restassured.path.json.JsonPath |
jsonPath() |
io.restassured.path.json.JsonPath |
jsonPath(io.restassured.path.json.config.JsonPathConfig config) |
<T> T |
path(java.lang.String path,
java.lang.String... arguments) |
io.restassured.response.Response |
peek() |
io.restassured.response.Response |
prettyPeek() |
java.lang.String |
prettyPrint() |
java.lang.String |
print() |
java.lang.String |
sessionId() |
int |
statusCode() |
java.lang.String |
statusLine() |
io.restassured.response.ValidatableResponse |
then() |
io.restassured.response.Response |
thenReturn() |
long |
time() |
long |
timeIn(java.util.concurrent.TimeUnit timeUnit) |
io.restassured.path.xml.XmlPath |
xmlPath() |
io.restassured.path.xml.XmlPath |
xmlPath(io.restassured.path.xml.XmlPath.CompatibilityMode compatibilityMode) |
io.restassured.path.xml.XmlPath |
xmlPath(io.restassured.path.xml.config.XmlPathConfig config) |
public io.restassured.response.ValidatableResponse then()
then in interface io.restassured.response.Validatable<io.restassured.response.ValidatableResponse,io.restassured.response.Response>public java.lang.String print()
print in interface io.restassured.response.ResponseBody<io.restassured.response.Response>public java.lang.String prettyPrint()
prettyPrint in interface io.restassured.response.ResponseBody<io.restassured.response.Response>public io.restassured.response.Response peek()
peek in interface io.restassured.response.ResponseBody<io.restassured.response.Response>public io.restassured.response.Response prettyPeek()
prettyPeek in interface io.restassured.response.ResponseBody<io.restassured.response.Response>public <T> T as(java.lang.Class<T> cls)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T as(java.lang.Class<T> cls,
io.restassured.mapper.ObjectMapperType mapperType)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T as(java.lang.Class<T> cls,
io.restassured.mapper.ObjectMapper mapper)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic io.restassured.path.json.JsonPath jsonPath()
jsonPath in interface io.restassured.response.ResponseBodyExtractionOptionspublic io.restassured.path.json.JsonPath jsonPath(io.restassured.path.json.config.JsonPathConfig config)
jsonPath in interface io.restassured.response.ResponseBodyExtractionOptionspublic io.restassured.path.xml.XmlPath xmlPath()
xmlPath in interface io.restassured.response.ResponseBodyExtractionOptionspublic io.restassured.path.xml.XmlPath xmlPath(io.restassured.path.xml.config.XmlPathConfig config)
xmlPath in interface io.restassured.response.ResponseBodyExtractionOptionspublic io.restassured.path.xml.XmlPath xmlPath(io.restassured.path.xml.XmlPath.CompatibilityMode compatibilityMode)
xmlPath in interface io.restassured.response.ResponseBodyExtractionOptionspublic io.restassured.path.xml.XmlPath htmlPath()
htmlPath in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T path(java.lang.String path,
java.lang.String... arguments)
path in interface io.restassured.response.ResponseBodyExtractionOptionspublic java.lang.String asString()
asString in interface io.restassured.response.ResponseBodyDatapublic byte[] asByteArray()
asByteArray in interface io.restassured.response.ResponseBodyDatapublic java.io.InputStream asInputStream()
asInputStream in interface io.restassured.response.ResponseBodyDatapublic io.restassured.response.Response andReturn()
andReturn in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.response.Response thenReturn()
thenReturn in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.response.ResponseBody body()
body in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.response.ResponseBody getBody()
getBody in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.http.Headers headers()
headers in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.http.Headers getHeaders()
getHeaders in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String header(java.lang.String name)
header in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String getHeader(java.lang.String name)
getHeader in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.util.Map<java.lang.String,java.lang.String> cookies()
cookies in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.http.Cookies detailedCookies()
detailedCookies in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.util.Map<java.lang.String,java.lang.String> getCookies()
getCookies in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.http.Cookies getDetailedCookies()
getDetailedCookies in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String cookie(java.lang.String name)
cookie in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String getCookie(java.lang.String name)
getCookie in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.http.Cookie detailedCookie(java.lang.String name)
detailedCookie in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.http.Cookie getDetailedCookie(java.lang.String name)
getDetailedCookie in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String contentType()
contentType in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String getContentType()
getContentType in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String statusLine()
statusLine in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String getStatusLine()
getStatusLine in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String sessionId()
sessionId in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public java.lang.String getSessionId()
getSessionId in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public int statusCode()
statusCode in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public int getStatusCode()
getStatusCode in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public long time()
time in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public long timeIn(java.util.concurrent.TimeUnit timeUnit)
timeIn in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public long getTime()
getTime in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public long getTimeIn(java.util.concurrent.TimeUnit timeUnit)
getTimeIn in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>