|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.restassured.internal.RestAssuredResponseImpl
public class RestAssuredResponseImpl
| Constructor Summary | |
|---|---|
RestAssuredResponseImpl()
|
|
| Method Summary | |
|---|---|
Response |
andReturn()
Syntactic sugar, simply returns the same response instance. |
byte[] |
asByteArray()
Get the body as a byte array. |
String |
asString()
Get the body as a string. |
ResponseBody |
body()
Returns the response body |
String |
contentType()
Get the content type of the response |
String |
cookie(String name)
Get a single cookie value associated with the given name. |
Map<String,String> |
cookies()
The response cookies. |
ResponseBody |
getBody()
Returns the response body |
Object |
getContent()
|
String |
getContentType()
Get the content type of the response |
String |
getCookie(String name)
Get a single cookie value associated with the given name. |
Map<String,String> |
getCookies()
The response cookies. |
String |
getHeader(String name)
Get a single header value associated with the given name. |
Map<String,String> |
getHeaders()
The response headers. |
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String property)
|
Object |
getResponseHeaders()
|
int |
getStatusCode()
Get the status code of the response. |
String |
getStatusLine()
Get the status line of the response. |
String |
header(String name)
Get a single header value associated with the given name. |
Map<String,String> |
headers()
The response headers. |
Object |
invokeMethod(String method,
Object arguments)
|
Object |
parseContentType(Object httpResponse)
|
Object |
parseCookies()
|
Object |
parseHeaders(Object httpResponse)
|
void |
parseResponse(Object httpResponse,
Object content)
|
Object |
parseStatus(Object httpResponse)
|
String |
print()
Print the response body and return it as string. |
void |
setContent(Object value)
|
void |
setContentType(Object value)
|
void |
setCookies(Object value)
|
void |
setMetaClass(groovy.lang.MetaClass mc)
|
void |
setProperty(String property,
Object value)
|
void |
setResponseHeaders(Object value)
|
void |
setStatusCode(Object value)
|
void |
setStatusLine(Object value)
|
int |
statusCode()
Get the status code of the response. |
String |
statusLine()
Get the status line of the response. |
Response |
thenReturn()
Syntactic sugar, simply returns the same response instance. |
Object |
toString(groovy.lang.Writable node)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RestAssuredResponseImpl()
| Method Detail |
|---|
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String method,
Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String property,
Object value)
setProperty in interface groovy.lang.GroovyObjectpublic Object getResponseHeaders()
public void setResponseHeaders(Object value)
public void setCookies(Object value)
public Object getContent()
public void setContent(Object value)
public void setContentType(Object value)
public void setStatusLine(Object value)
public void setStatusCode(Object value)
public void parseResponse(Object httpResponse,
Object content)
public Object parseStatus(Object httpResponse)
public Object parseContentType(Object httpResponse)
public Object parseCookies()
public Object parseHeaders(Object httpResponse)
public Object toString(groovy.lang.Writable node)
public String print()
ResponseBody
print in interface ResponseBodypublic String asString()
ResponseBody
asString in interface ResponseBodypublic byte[] asByteArray()
ResponseBody
asByteArray in interface ResponseBodypublic Response andReturn()
Response
andReturn in interface Responsepublic ResponseBody body()
Response
body in interface Responsepublic Response thenReturn()
Response
thenReturn in interface Responsepublic ResponseBody getBody()
Response
getBody in interface Responsepublic Map<String,String> headers()
Response
headers in interface Responsepublic Map<String,String> getHeaders()
Response
getHeaders in interface Responsepublic String header(String name)
Response
header in interface Responsenull if value was not found.public String getHeader(String name)
Response
getHeader in interface Responsenull if value was not found.public Map<String,String> cookies()
Response
cookies in interface Responsepublic Map<String,String> getCookies()
Response
getCookies in interface Responsepublic String cookie(String name)
Response
cookie in interface Responsenull if value was not found.public String getCookie(String name)
Response
getCookie in interface Responsenull if value was not found.public String contentType()
Response
contentType in interface Responsenull if not found.public String getContentType()
Response
getContentType in interface Responsenull if not found.public String statusLine()
Response
statusLine in interface Responsepublic int statusCode()
Response
statusCode in interface Responsepublic String getStatusLine()
Response
getStatusLine in interface Responsepublic int getStatusCode()
Response
getStatusCode in interface Response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||