Interface BaseController.ResponseHandler<T>

  • Enclosing class:
    BaseController

    protected static interface BaseController.ResponseHandler<T>
    ResponseHandler.
    • Method Detail

      • handle

        ApiResponse<T> handle​(HttpContext context)
                       throws ApiException,
                              IOException
        Handles the response for an endpoint.
        Parameters:
        context - HttpContext of the request and the received response
        Returns:
        An object of type T wrapped in ApiResponse.
        Throws:
        ApiException - Represents error response from the server.
        IOException - Signals that an I/O exception of some sort has occurred.