|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.WS.HttpResponse
public static class WS.HttpResponse
An HTTP response wrapper
Constructor Summary | |
---|---|
WS.HttpResponse(org.apache.commons.httpclient.HttpMethod method)
you shouldnt have to create an HttpResponse yourself |
Method Summary | |
---|---|
java.lang.String |
getContentType()
The http response content type |
java.lang.String |
getHeader(java.lang.String key)
|
com.google.gson.JsonElement |
getJson()
get the response body as a com.google.gson.JSONObject |
java.lang.Integer |
getStatus()
the HTTP status code |
java.io.InputStream |
getStream()
get the response as a stream |
java.lang.String |
getString()
get the response body as a string |
org.w3c.dom.Document |
getXml()
Parse and get the response body as a DOM document |
org.w3c.dom.Document |
getXml(java.lang.String encoding)
parse and get the response body as a DOM document |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WS.HttpResponse(org.apache.commons.httpclient.HttpMethod method)
method
- Method Detail |
---|
public java.lang.Integer getStatus()
public java.lang.String getContentType()
public java.lang.String getHeader(java.lang.String key)
public org.w3c.dom.Document getXml()
DOM document
public org.w3c.dom.Document getXml(java.lang.String encoding)
DOM document
encoding
- xml charset encoding
public java.lang.String getString()
public java.io.InputStream getStream()
public com.google.gson.JsonElement getJson()
com.google.gson.JSONObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |