Package org.azd.abstractions
Class ResponseHandler
java.lang.Object
org.azd.abstractions.ResponseHandler
- Direct Known Subclasses:
DefaultResponseHandler
Handler the Api response.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseHandlercreate(RetryHandler retryHandler) Creates an instance of Response handler.static ApiResponseGet the Api response object after the execution of a request.abstract <T> Thandle(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.
-