public static class WSAsync.HttpAsyncResponse extends WS.HttpResponse
| Constructor and Description |
|---|
HttpAsyncResponse(com.ning.http.client.Response response)
you shouldnt have to create an HttpResponse yourself
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHeader(String key) |
List<Http.Header> |
getHeaders() |
Integer |
getStatus()
the HTTP status code
|
String |
getStatusText()
the HTTP status text
|
InputStream |
getStream()
get the response as a stream
|
String |
getString()
get the response body as a string
|
String |
getString(String encoding)
get the response body as a string
|
getContentType, getEncoding, getJson, getQueryString, getXml, getXml, successpublic HttpAsyncResponse(com.ning.http.client.Response response)
response - public Integer getStatus()
getStatus in class WS.HttpResponsepublic String getStatusText()
getStatusText in class WS.HttpResponsepublic String getHeader(String key)
getHeader in class WS.HttpResponsepublic List<Http.Header> getHeaders()
getHeaders in class WS.HttpResponsepublic String getString()
WS.HttpResponsegetString in class WS.HttpResponsepublic String getString(String encoding)
WS.HttpResponsegetString in class WS.HttpResponseencoding - string charset encodingpublic InputStream getStream()
getStream in class WS.HttpResponseGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly