|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Net.HttpResponse
HTTP response interface with methods to get the response data as a byte[], a String
or an InputStream
.
Method Summary | |
---|---|
String |
getHeader(String name)
Returns the value of the header with the given name as a String , or null if the header is not set. |
Map<String,List<String>> |
getHeaders()
Returns a Map of the headers. |
byte[] |
getResult()
Returns the data of the HTTP response as a byte[]. |
InputStream |
getResultAsStream()
Returns the data of the HTTP response as an InputStream . |
String |
getResultAsString()
Returns the data of the HTTP response as a String . |
HttpStatus |
getStatus()
Returns the HttpStatus containing the statusCode of the HTTP response. |
Method Detail |
---|
byte[] getResult()
Net.HttpRequest.setTimeOut(int)
String getResultAsString()
String
.
Net.HttpRequest.setTimeOut(int)
InputStream getResultAsStream()
InputStream
.
HttpResponseListener#handleHttpResponse(HttpResponse)
.
The underlying HTTP connection will be closed after that callback finishes executing.
Reading from the InputStream after it's connection has been closed will lead to exception.
InputStream
with the Net.HttpResponse
data.HttpStatus getStatus()
HttpStatus
containing the statusCode of the HTTP response.
String getHeader(String name)
String
, or null if the header is not set.
Map<String,List<String>> getHeaders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |