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.Context context,
EndpointConfiguration config,
GlobalConfiguration globalConfig)
Processes an HttpResponse and returns some value corresponding to that
response.
|
ResponseHandler.Builder<ResponseType,ExceptionType> |
toBuilder()
Converts this ResponseHandler to its builder.
|
public ResponseType handle(io.apimatic.coreinterfaces.http.Context context, EndpointConfiguration config, GlobalConfiguration globalConfig) throws IOException, ExceptionType extends CoreApiException
context - Context which is made for endpoint.config - All endPoint level configuration.globalConfig - All apiCall level configuration.IOException - Signals that an I/O exception of some sort has
occurred.ExceptionType - Represents error response from the server.ExceptionType extends CoreApiExceptionpublic ResponseHandler.Builder<ResponseType,ExceptionType> toBuilder()
Copyright © 2025. All rights reserved.