Class DefaultResponseHandler

java.lang.Object
org.azd.abstractions.ResponseHandler
org.azd.abstractions.handlers.DefaultResponseHandler

public class DefaultResponseHandler extends ResponseHandler
Implementation of response handler.
  • Constructor Details

    • DefaultResponseHandler

      public DefaultResponseHandler(RetryHandler handler)
  • Method Details

    • handle

      public <T> T handle(HttpResponse<T> response, RequestInformation requestInformation)
      Handles response from the API.
      Specified by:
      handle in class ResponseHandler
      Type Parameters:
      T - Type parameter.
      Parameters:
      response - HttpResponse object.
      requestInformation - Request information sent to the API.
      Returns:
      Object or any specified type.