Package com.bandwidth.controllers
Interface BaseController.ResponseHandler<T>
- Enclosing class:
- BaseController
protected static interface BaseController.ResponseHandler<T>
ResponseHandler.
-
Method Summary
Modifier and Type Method Description ApiResponse<T>
handle(HttpContext context)
Handles the response for an endpoint.
-
Method Details
-
handle
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.java.io.IOException
- Signals that an I/O exception of some sort has occurred.
-