Package | Description |
---|---|
io.sphere.sdk.client |
Provides types to connect to the API via HTTPS.
|
io.sphere.sdk.client.retry | |
io.sphere.sdk.http |
Provides types to deal with HTTP.
|
Modifier and Type | Method and Description |
---|---|
static HttpClient |
SphereApacheHttpClientFactory.create() |
static HttpClient |
SphereAsyncHttpClientFactory.create()
Deprecated.
|
HttpClient |
SphereClientFactory.createHttpClient() |
abstract HttpClient |
SphereHttpClientFactory.getClient()
The
HttpClient provider method |
HttpClient |
SphereApacheHttpClientFactory.getClient() |
HttpClient |
SphereAsyncHttpClientFactory.getClient() |
Modifier and Type | Method and Description |
---|---|
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.
|
static TokensSupplier |
TokensSupplier.of(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient) |
static TokensSupplier |
TokensSupplier.of(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient,
List<SolutionInfo> additionalSolutionInfos) |
static SphereAccessTokenSupplier |
SphereAccessTokenSupplier.ofAutoRefresh(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient)
Provides a token generator which tries to always provide a valid token.
|
static TokensSupplier |
TokensSupplier.ofCustomerPasswordFlowTokens(SphereAuthConfig authConfig,
String email,
String password,
HttpClient httpClient,
boolean closeHttpClient) |
static TokensSupplier |
TokensSupplier.ofCustomerPasswordFlowTokens(SphereAuthConfig authConfig,
String email,
String password,
HttpClient httpClient,
boolean closeHttpClient,
List<SolutionInfo> additionalSolutionInfos) |
static SphereAccessTokenSupplier |
SphereAccessTokenSupplier.ofOneTimeFetchingToken(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient)
Provides a token generator which fetches only one token.
|
Modifier and Type | Method and Description |
---|---|
static SphereClientFactory |
SphereClientFactory.of(Supplier<HttpClient> httpClientSupplier) |
Modifier and Type | Method and Description |
---|---|
static RetryableSphereClientBuilder |
RetryableSphereClientBuilder.of(SphereClientConfig sphereClientConfig,
HttpClient httpClient)
Creates a new instance of
RetryableSphereClientBuilder given a SphereClientConfig
responsible for creation of a SphereClient. |
Modifier and Type | Interface and Description |
---|---|
interface |
ApacheHttpClientAdapter
Adapter to use a
CloseableHttpAsyncClient as HttpClient . |
interface |
AsyncHttpClientAdapter
Adapter to use
AsyncHttpClient (version 2.0.x) as HttpClient . |
Modifier and Type | Class and Description |
---|---|
class |
HttpClientAdapterBase
Base class for implementing
HttpClient s. |
Modifier and Type | Method and Description |
---|---|
static HttpClient |
AsyncHttpClientAdapter.of(org.asynchttpclient.AsyncHttpClient asyncHttpClient) |
static HttpClient |
ApacheHttpClientAdapter.of(org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient client) |