| Package | Description |
|---|---|
| io.apimatic.core | |
| io.apimatic.core.request.async |
| Modifier and Type | Class and Description |
|---|---|
class |
ApiCall<ResponseType,ExceptionType extends CoreApiException>
An API call, or API request, is a message sent to a server asking an API to provide a service or
information.
|
static class |
ApiCall.Builder<ResponseType,ExceptionType extends CoreApiException>
Builder class for the
ApiCall class. |
class |
ErrorCase<ExceptionType extends CoreApiException>
A class is responsible to generate the SDK Exception.
|
class |
ResponseHandler<ResponseType,ExceptionType extends CoreApiException>
Handler that encapsulates the process of generating a response object from a Response.
|
static class |
ResponseHandler.Builder<ResponseType,ExceptionType extends CoreApiException> |
| Modifier and Type | Method and Description |
|---|---|
static <ExceptionType extends CoreApiException> |
ErrorCase.setReason(String reason,
io.apimatic.coreinterfaces.type.functional.ExceptionCreator<ExceptionType> exceptionCreator)
Create the errorcase using the error reason and exception creator functional interface which
throws the respective exception while throwing.
|
static <ExceptionType extends CoreApiException> |
ErrorCase.setTemplate(String reason,
io.apimatic.coreinterfaces.type.functional.ExceptionCreator<ExceptionType> exceptionCreator)
Create the errorcase using the error reason and exception creator functional interface which
throws the respective exception while throwing.
|
| Modifier and Type | Method and Description |
|---|---|
ResponseType |
ApiCall.execute()
Execute the ApiCall and returns the expected response.
|
ResponseType |
ResponseHandler.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.
|
void |
ErrorCase.throwException(io.apimatic.coreinterfaces.http.Context httpContext)
this method throw the configured exception using functional interface.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
AsyncResponseHandler<T,ExceptionType extends CoreApiException>
A Handler that handles the response asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
static <ResponseType,ExceptionType extends CoreApiException> |
AsyncExecutor.makeHttpCallAsync(RequestSupplier requestSupplier,
RequestExecutor requestExecutor,
AsyncResponseHandler<ResponseType,ExceptionType> responseHandler)
Make an asynchronous HTTP end point call.
|
| Modifier and Type | Method and Description |
|---|---|
T |
AsyncResponseHandler.handle(io.apimatic.coreinterfaces.http.request.Request httpRequest,
io.apimatic.coreinterfaces.http.response.Response httpResponse)
Handles the response for an endpoint.
|
Copyright © 2023. All rights reserved.