public class AhcWSResponse extends java.lang.Object implements WSResponse
| Constructor and Description |
|---|
AhcWSResponse(StandaloneWSResponse response) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asByteArray() |
com.fasterxml.jackson.databind.JsonNode |
asJson() |
org.w3c.dom.Document |
asXml() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAllHeaders() |
java.lang.String |
getBody() |
java.io.InputStream |
getBodyAsStream() |
WSCookie |
getCookie(java.lang.String name) |
java.util.List<WSCookie> |
getCookies() |
java.lang.String |
getHeader(java.lang.String key) |
int |
getStatus() |
java.lang.String |
getStatusText() |
java.lang.Object |
getUnderlying() |
java.net.URI |
getUri() |
public AhcWSResponse(StandaloneWSResponse response)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllHeaders()
getAllHeaders in interface StandaloneWSResponsepublic java.lang.String getHeader(java.lang.String key)
getHeader in interface StandaloneWSResponsekey - the header's namepublic java.lang.Object getUnderlying()
getUnderlying in interface StandaloneWSResponsepublic int getStatus()
getStatus in interface StandaloneWSResponsepublic java.lang.String getStatusText()
getStatusText in interface StandaloneWSResponsepublic java.util.List<WSCookie> getCookies()
getCookies in interface StandaloneWSResponsepublic WSCookie getCookie(java.lang.String name)
getCookie in interface StandaloneWSResponsename - the cookie namepublic java.lang.String getBody()
getBody in interface StandaloneWSResponsepublic org.w3c.dom.Document asXml()
asXml in interface StandaloneWSResponsepublic com.fasterxml.jackson.databind.JsonNode asJson()
asJson in interface StandaloneWSResponsepublic java.io.InputStream getBodyAsStream()
getBodyAsStream in interface StandaloneWSResponsepublic byte[] asByteArray()
asByteArray in interface StandaloneWSResponsepublic java.net.URI getUri()
getUri in interface StandaloneWSResponse