ResponseType - resource from server.ExceptionType - Represents error response from the server.public static class ApiCall.Builder<ResponseType,ExceptionType extends CoreApiException> extends Object
ApiCall class.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ApiCall<ResponseType,ExceptionType> |
build()
build the
ApiCall. |
ApiCall.Builder<ResponseType,ExceptionType> |
endpointConfiguration(Consumer<EndpointConfiguration.Builder> action) |
ApiCall.Builder<ResponseType,ExceptionType> |
globalConfig(GlobalConfiguration globalConfig) |
ApiCall.Builder<ResponseType,ExceptionType> |
requestBuilder(Consumer<HttpRequest.Builder> action) |
ApiCall.Builder<ResponseType,ExceptionType> |
requestBuilder(HttpRequest.Builder builder) |
ApiCall.Builder<ResponseType,ExceptionType> |
responseHandler(Consumer<ResponseHandler.Builder<ResponseType,ExceptionType>> action) |
public ApiCall.Builder<ResponseType,ExceptionType> globalConfig(GlobalConfiguration globalConfig)
globalConfig - the configuration of Http Request.ApiCall.Builder.public ApiCall.Builder<ResponseType,ExceptionType> requestBuilder(Consumer<HttpRequest.Builder> action)
action - requestBuilder Consumer.ApiCall.Builder.public ApiCall.Builder<ResponseType,ExceptionType> requestBuilder(HttpRequest.Builder builder)
builder - requestBuilder HttpRequest.Builder.ApiCall.Builder.public ApiCall.Builder<ResponseType,ExceptionType> responseHandler(Consumer<ResponseHandler.Builder<ResponseType,ExceptionType>> action)
action - responseHandler Consumer.ApiCall.Builder.public ApiCall.Builder<ResponseType,ExceptionType> endpointConfiguration(Consumer<EndpointConfiguration.Builder> action)
action - endpointConfiguration Consumer.ApiCall.Builder.public ApiCall<ResponseType,ExceptionType> build()
ApiCall.ApiCall.Copyright © 2025. All rights reserved.