|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.WS.Response
public static class WS.Response
A WS response.
Constructor Summary | |
---|---|
WS.Response(com.ning.http.client.Response ahcResponse)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WS.Response(com.ning.http.client.Response ahcResponse)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |