The following parameters are configurable for the API Client:
Parameter | Type | Description |
---|---|---|
environment |
Environment | The API environment. Default: Environment.PRODUCTION |
httpClientConfig |
ReadonlyHttpClientConfiguration |
Http Client Configuration instance. * See available builder methods here. |
The API client can be initialized as follows:
APIMATICCalculatorClient client = new APIMATICCalculatorClient.Builder()
.httpClientConfig(configBuilder -> configBuilder
.timeout(0))
.environment(Environment.PRODUCTION)
.build();
The gateway for the SDK. This class acts as a factory for the Controllers and also holds the configuration of the SDK.
Name | Description | Return Type |
---|---|---|
getSimpleCalculatorController() |
Provides access to SimpleCalculator controller. | SimpleCalculatorController |
Name | Description | Return Type |
---|---|---|
shutdown() |
Shutdown the underlying HttpClient instance. | void |
getEnvironment() |
Current API environment. | Environment |
getHttpClient() |
The HTTP Client instance to use for making HTTP requests. | HttpClient |
getHttpClientConfig() |
Http Client Configuration instance. | ReadonlyHttpClientConfiguration |
getBaseUri(Server server) |
Get base URI by current environment | String |
getBaseUri() |
Get base URI by current environment | String |