ResponseType - The response to process.ExceptionType - in case of a problem.public final class ResponseHandler<ResponseType,ExceptionType extends CoreApiException> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResponseHandler.Builder<ResponseType,ExceptionType extends CoreApiException> |
| Modifier and Type | Method and Description |
|---|---|
ResponseType |
handle(io.apimatic.coreinterfaces.http.request.Request httpRequest,
io.apimatic.coreinterfaces.http.response.Response httpResponse,
GlobalConfiguration globalConfiguration,
io.apimatic.coreinterfaces.http.request.configuration.CoreEndpointConfiguration endpointConfiguration)
Processes an HttpResponse and returns some value corresponding to that response.
|
public ResponseType handle(io.apimatic.coreinterfaces.http.request.Request httpRequest, io.apimatic.coreinterfaces.http.response.Response httpResponse, GlobalConfiguration globalConfiguration, io.apimatic.coreinterfaces.http.request.configuration.CoreEndpointConfiguration endpointConfiguration) throws IOException, ExceptionType extends CoreApiException
httpRequest - Request which is made for endpoint.httpResponse - Response which is received after execution.globalConfiguration - the global configuration to store the request global information.endpointConfiguration - the endpoint level configuration.IOException - Signals that an I/O exception of some sort has occurred.ExceptionType - Represents error response from the server.ExceptionType extends CoreApiExceptionCopyright © 2023. All rights reserved.