Package | Description |
---|---|
io.sphere.sdk.client |
Provides types to connect to the API via HTTPS.
|
Modifier and Type | Class and Description |
---|---|
class |
SphereClientConfig
The full api and auth configuration for a Composable Commerce client.
|
Modifier and Type | Method and Description |
---|---|
SphereApiConfig |
SphereClientDecorator.getConfig() |
SphereApiConfig |
SphereClient.getConfig()
Getter for the SphereApiConfig used for this client
|
static SphereApiConfig |
SphereApiConfig.of(String projectKey) |
static SphereApiConfig |
SphereApiConfig.of(String projectKey,
String apiUrl) |
static SphereApiConfig |
SphereApiConfig.of(String projectKey,
String apiUrl,
CorrelationIdGenerator correlationIdGenerator) |
Modifier and Type | Method and Description |
---|---|
default SphereClient |
SphereClientFactory.createClient(SphereApiConfig config,
SphereAccessTokenSupplier tokenSupplier)
Creates a client with a custom service to provide access tokens.
|
default SphereClient |
SphereClientFactory.createClientOfApiConfigAndAccessToken(SphereApiConfig config,
String accessToken)
Creates a client which relies on an access token and does not refresh it.
|
default SphereClient |
SphereClientFactory.createClientOfApiConfigAndAccessToken(SphereApiConfig config,
String accessToken,
HttpClient httpClient)
Creates a client which relies on an access token and does not refresh it, it reuses an existing http client.
|
static SphereClient |
SphereClient.of(SphereApiConfig config,
HttpClient httpClient,
SphereAccessTokenSupplier tokenSupplier)
Raw client creation.
|
static SphereClient |
SphereClient.of(SphereApiConfig config,
HttpClient httpClient,
SphereAccessTokenSupplier tokenSupplier,
List<SolutionInfo> additionalSolutionInfos)
Raw client creation.
|