public static class WSUrlFetch.HttpUrlfetchResponse extends WS.HttpResponse
| Constructor and Description |
|---|
HttpUrlfetchResponse(HttpURLConnection connection)
you shouldn't 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 HttpUrlfetchResponse(HttpURLConnection connection)
connection - 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()
getString 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