public static class WS.Response
extends java.lang.Object
Constructor and Description |
---|
WS.Response(com.ning.http.client.Response ahcResponse) |
Modifier and Type | Method and Description |
---|---|
org.codehaus.jackson.JsonNode |
asJson()
Get the response body as a
JsonNode |
org.w3c.dom.Document |
asXml()
Get the response body as a
DOM document |
java.lang.String |
getBody()
Get the response body as a string
|
java.lang.String |
getHeader(java.lang.String key)
Get the given HTTP header of the response
|
int |
getStatus()
Get the HTTP status code of the response
|
public int getStatus()
public java.lang.String getHeader(java.lang.String key)
public java.lang.String getBody()
public org.w3c.dom.Document asXml()
DOM document
public org.codehaus.jackson.JsonNode asJson()
JsonNode