Package com.bandwidth.controllers
Interface BaseController.ResponseHandler<T>
-
- Enclosing class:
- BaseController
protected static interface BaseController.ResponseHandler<T>
ResponseHandler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApiResponse<T>
handle(HttpContext context)
Handles the response for an endpoint.
-
-
-
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.
-
-