T - Type for response entity.public interface HttpClientResponse<T>
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.
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()
Copyright © 2014. All Rights Reserved.