Package org.azd.abstractions
Class ResponseHandler
java.lang.Object
org.azd.abstractions.ResponseHandler
- Direct Known Subclasses:
DefaultResponseHandler
Handler the Api response.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseHandler
create
(RetryHandler retryHandler) Creates an instance of Response handler.static ApiResponse
Get the Api response object after the execution of a request.abstract <T> T
handle
(HttpResponse<T> response, RequestInformation requestInformation) Handles the Api response.
-
Field Details
-
apiResponse
-
retryHandler
-
-
Constructor Details
-
ResponseHandler
-
-
Method Details
-
create
Creates an instance of Response handler.- Parameters:
retryHandler
- Retry handler to retry the request.- Returns:
- Response handler object.
-
getResponse
Get the Api response object after the execution of a request.- Returns:
- ApiResponse object
ApiResponse
.
-
handle
Handles the Api response.- Type Parameters:
T
- Type parameter.- Parameters:
response
- Http response object.requestInformation
- Request information object.RequestInformation
.- Returns:
- Java type value that is passed.
-