public class ResponseStub extends Object implements io.restassured.response.Response
| Constructor and Description |
|---|
ResponseStub() |
| Modifier and Type | Method and Description |
|---|---|
io.restassured.response.Response |
andReturn() |
<T> T |
as(Class<T> cls) |
<T> T |
as(Class<T> cls,
io.restassured.mapper.ObjectMapper mapper) |
<T> T |
as(Class<T> cls,
io.restassured.mapper.ObjectMapperType mapperType) |
<T> T |
as(Type cls) |
<T> T |
as(Type cls,
io.restassured.mapper.ObjectMapper mapper) |
<T> T |
as(Type cls,
io.restassured.mapper.ObjectMapperType mapperType) |
<T> T |
as(io.restassured.common.mapper.TypeRef<T> typeRef) |
byte[] |
asByteArray() |
InputStream |
asInputStream() |
String |
asPrettyString() |
String |
asString() |
io.restassured.response.ResponseBody |
body() |
String |
contentType() |
String |
cookie(String name) |
Map<String,String> |
cookies() |
io.restassured.http.Cookie |
detailedCookie(String name) |
io.restassured.http.Cookies |
detailedCookies() |
io.restassured.response.ResponseBody |
getBody() |
String |
getContentType() |
String |
getCookie(String name) |
Map<String,String> |
getCookies() |
io.restassured.http.Cookie |
getDetailedCookie(String name) |
io.restassured.http.Cookies |
getDetailedCookies() |
String |
getHeader(String name) |
io.restassured.http.Headers |
getHeaders() |
String |
getSessionId() |
int |
getStatusCode() |
String |
getStatusLine() |
long |
getTime() |
long |
getTimeIn(TimeUnit timeUnit) |
String |
header(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(String path,
String... arguments) |
io.restassured.response.Response |
peek() |
io.restassured.response.Response |
prettyPeek() |
String |
prettyPrint() |
String |
print() |
String |
sessionId() |
int |
statusCode() |
String |
statusLine() |
io.restassured.response.ValidatableResponse |
then() |
io.restassured.response.Response |
thenReturn() |
long |
time() |
long |
timeIn(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 String print()
print in interface io.restassured.response.ResponseBody<io.restassured.response.Response>public 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(Class<T> cls)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T as(Class<T> cls, io.restassured.mapper.ObjectMapperType mapperType)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T as(Class<T> cls, io.restassured.mapper.ObjectMapper mapper)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T as(io.restassured.common.mapper.TypeRef<T> typeRef)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T as(Type cls)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T as(Type cls, io.restassured.mapper.ObjectMapperType mapperType)
as in interface io.restassured.response.ResponseBodyExtractionOptionspublic <T> T as(Type 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(String path, String... arguments)
path in interface io.restassured.response.ResponseBodyExtractionOptionspublic String asString()
asString in interface io.restassured.response.ResponseBodyDatapublic String asPrettyString()
asPrettyString in interface io.restassured.response.ResponseBodyDatapublic byte[] asByteArray()
asByteArray in interface io.restassured.response.ResponseBodyDatapublic 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 String header(String name)
header in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public String getHeader(String name)
getHeader in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public Map<String,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 Map<String,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 String cookie(String name)
cookie in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public String getCookie(String name)
getCookie in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.http.Cookie detailedCookie(String name)
detailedCookie in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public io.restassured.http.Cookie getDetailedCookie(String name)
getDetailedCookie in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public String contentType()
contentType in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public String getContentType()
getContentType in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public String statusLine()
statusLine in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public String getStatusLine()
getStatusLine in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public String sessionId()
sessionId in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>public 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(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(TimeUnit timeUnit)
getTimeIn in interface io.restassured.response.ResponseOptions<io.restassured.response.Response>Copyright © 2023. All rights reserved.