public interface WSResponse
Modifier and Type | Method and Description |
---|---|
byte[] |
asByteArray()
Gets the body as an array of bytes.
|
com.fasterxml.jackson.databind.JsonNode |
asJson()
Gets the body as JSON node.
|
org.w3c.dom.Document |
asXml()
Gets the body as XML.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAllHeaders()
Gets all the headers from the response.
|
java.lang.String |
getBody()
Gets the body as a string.
|
java.io.InputStream |
getBodyAsStream()
Gets the body as a stream.
|
WSCookie |
getCookie(java.lang.String name)
Gets a single cookie from the response, if any.
|
java.util.List<WSCookie> |
getCookies()
Gets all the cookies from the response.
|
java.lang.String |
getHeader(java.lang.String key)
Gets a single header from the response.
|
int |
getStatus()
Returns the HTTP status code from the response.
|
java.lang.String |
getStatusText()
Returns the text associated with the status code.
|
java.lang.Object |
getUnderlying()
Gets the underlying implementation response object, if any.
|
java.net.URI |
getUri()
Gets the URI of the response.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllHeaders()
java.lang.String getHeader(java.lang.String key)
java.lang.Object getUnderlying()
int getStatus()
java.lang.String getStatusText()
java.util.List<WSCookie> getCookies()
WSCookie getCookie(java.lang.String name)
java.lang.String getBody()
org.w3c.dom.Document asXml()
com.fasterxml.jackson.databind.JsonNode asJson()
java.io.InputStream getBodyAsStream()
byte[] asByteArray()
java.net.URI getUri()