|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.libs.WS.HttpResponse
public abstract static class WS.HttpResponse
An HTTP response wrapper
| Constructor Summary | |
|---|---|
WS.HttpResponse()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
The http response content type |
abstract java.lang.String |
getHeader(java.lang.String key)
|
abstract java.util.List<Http.Header> |
getHeaders()
|
JsonElement |
getJson()
get the response body as a JSONObject |
java.util.Map<java.lang.String,java.lang.String> |
getQueryString()
Parse the response string as a query string. |
abstract java.lang.Integer |
getStatus()
the HTTP status code |
abstract 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()
| Method Detail |
|---|
public abstract java.lang.Integer getStatus()
public java.lang.String getContentType()
public abstract java.lang.String getHeader(java.lang.String key)
public abstract java.util.List<Http.Header> getHeaders()
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.util.Map<java.lang.String,java.lang.String> getQueryString()
public abstract java.io.InputStream getStream()
public JsonElement getJson()
JSONObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||