Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.57 KB

client.md

File metadata and controls

41 lines (29 loc) · 1.57 KB

Client Class Documentation

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();

APIMATIC CalculatorClient Class

The gateway for the SDK. This class acts as a factory for the Controllers and also holds the configuration of the SDK.

Controllers

Name Description Return Type
getSimpleCalculatorController() Provides access to SimpleCalculator controller. SimpleCalculatorController

Methods

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