|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Type for response entity.public interface HttpClientResponse<T>
Http Response as being returned by a HttpClient. Provides the user with the HTTP response code, response entity
and optional error message.
IMPORTANT: Call close() method when done with process response. This will clean-up resources.
| Method Summary | |
|---|---|
void |
close()
Closes all resources related to this request/response. |
String |
getContentType()
Get Content-Type. |
String |
getErrorMessage()
In case request failed this will return the error message. |
int |
getHttpCode()
Gets the HTTP return code. |
T |
getResponseEntity()
Gets response object as a result of executing http request. |
boolean |
success()
Indicates if result of http request was successful. |
| Method Detail |
|---|
boolean success()
true in case request was successful, false in case request failed.int getHttpCode()
String getErrorMessage()
null in case request was successful.T getResponseEntity()
void close()
String getContentType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||