|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.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 | |
|---|---|
String |
getContentType()
The http response content type |
String |
getHeader(String key)
|
org.apache.commons.httpclient.Header[] |
getHeaders()
|
com.google.gson.JsonElement |
getJson()
get the response body as a com.google.gson.JSONObject |
Integer |
getStatus()
the HTTP status code |
InputStream |
getStream()
get the response as a stream |
String |
getString()
get the response body as a string |
Document |
getXml()
Parse and get the response body as a DOM document |
Document |
getXml(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 Integer getStatus()
public String getContentType()
public String getHeader(String key)
public org.apache.commons.httpclient.Header[] getHeaders()
public Document getXml()
DOM document
public Document getXml(String encoding)
DOM document
encoding - xml charset encoding
public String getString()
public 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 | |||||||||