| Interface | Description |
|---|---|
| BlockingSphereClient |
A client for Composable Commerce which provides thread blocking and non-blocking methods to execute a request.
|
| CorrelationIdGenerator |
Generates correlation ids for each request.
|
| ReasonAutoClosable | |
| RetrySphereClientDecorator |
Wraps a
SphereClient to handle failures like gateway timeouts and version conflicts through retrying the request. |
| SphereAccessTokenSupplier |
Provides an OAuth token for accessing protected Sphere HTTP API endpoints.
|
| SphereApiConfig |
Configuration to make request for a Composable Commerce web service, does not include authentication configuration or tokens.
|
| SphereAuthConfig |
Contains the configuration to fetch access keys for the Composable Commerce API.
|
| SphereClient |
A client interface to perform requests to Composable Commerce.
|
| SphereClientFactory |
A factory to instantiate Composable Commerce Java clients which use
CompletionStage as future implementation. |
| SphereClientModule | |
| SphereCorrelationIdConfig | |
| SphereRequest<T> |
An argument for a sphere client to execute an HTTP API call on the level of one project.
|
| SphereScope | |
| Tokens |
OAuth tokens returned by the authorization server.
|
| TokensSupplier |
Component that asynchronous retrieves tokens.
|
| Class | Description |
|---|---|
| DeprecationExceptionSphereClientDecorator |
Decorator for
SphereClients to throw exceptions on deprecated http calls. |
| HttpRequestIntent |
Expresses the HTTP request domain model from commercetools Composable Commerce as a draft for
HttpRequest. |
| JavaAndHttpResponseSphereRequest<T> |
A wrapper for a
SphereRequest to receive the Java object as well as the HttpResponse representation. |
| JavaAndJsonSphereRequest<T> |
A wrapper for a
SphereRequest to receive the Java object as well as the JsonNode representation. |
| JsonEndpoint<T> |
Internal class.
|
| JsonNodeSphereRequest |
A
SphereRequest which returns JsonNode instances instead of deserialized Java domain model classes. |
| MySphereAuthConfigBuilder | |
| QueueSphereClientDecorator |
Decorates a
SphereClient to limit the amount of parallel requests which await an answer. |
| SolutionInfo |
Marker interface to generate a solution info for the JVM SDK user agent.
|
| SphereApacheHttpClientFactory | |
| SphereAsyncHttpClientFactory |
Creates an
HttpClient with Composable Commerce configured underlying AsyncHttpClient. |
| SphereAsyncHttpClientFactory | |
| SphereAsyncHttpClientFactory | |
| SphereAsyncHttpClientFactory | |
| SphereAuthConfigBuilder | |
| SphereClientConfig |
The full api and auth configuration for a Composable Commerce client.
|
| SphereClientConfigBuilder | |
| SphereClientDecorator |
A public base class to decorate
SphereClients. |
| SphereClientUtils | |
| SphereHttpClientFactory |
In order to work, the sdk needs an
HttpClient provider, this can be done by extending SphereHttpClientFactory
and exposing it as a service |
| SphereHttpHeaders |
Holds the names of commercetools Composable Commerce proprietary HTTP headers.
|
| SphereProjectScope | |
| SphereRequestDecorator<T> |
Public available base class to decorate the behaviour of
SphereRequests. |
| SphereRequestUtils |
Utils for common behaviour of
SphereRequests. |
| TestDoubleSphereClientFactory |
A factory to instantiate test double
SphereClients clients which use CompletionStage as future implementation. |
| TimeoutSphereClientDecorator |
Wraps a
SphereClient to add timeouts. |
| TokensFacade |
Provides facilities to fetch access and refresh tokens from Composable Commerce.
|
| Exception | Description |
|---|---|
| BadGatewayException |
On the server occurred a problem, try again later.
|
| BadRequestException |
HTTP code 400 response from the API.
|
| ClientErrorException |
Exceptions for Composable Commerce HTTP responses with an error code 4xx.
|
| ConcurrentModificationException |
HTTP code 409 response.
|
| ErrorResponseException |
Typical exception for bad requests containing error information.
|
| ForbiddenException |
The commercetools Composable Commerce API received the request but refuses to process it, typically to insufficient rights.
|
| GatewayTimeoutException |
This error might occur on long running processes
such as deletion of resources with connections to other resources.
|
| InternalServerErrorException |
An exception has been thrown on the server side.
|
| InvalidClientCredentialsException |
Exception for the case that projectKey/cliendId/clientSecret are invalid.
|
| InvalidScopeException |
when trying to make a commercetoold eith invalid scope
|
| InvalidTokenException |
Exception raised in case the access token is not valid for the used Project.
|
| NotFoundException |
Known causes:
Updating an object which does not exist (anymore)
|
| RequestEntityTooLargeException |
HTTP code 413 response from the API.
|
| ServerErrorException |
The API answered with a HTTP response code of >= 500.
|
| ServiceUnavailableException |
The Composable Commerce API is currently not available.
|
| SphereDeprecationException |
Exception thrown by
DeprecationExceptionSphereClientDecorator in case a deprecated feature of Composable Commerce is used. |
| SphereServiceException |
Exception thrown when the API responds
with a status code other than HTTP 2xx. |
| SphereTimeoutException |
Unchecked exceptions for timeouts in the JVM SDK.
|
| SuspendedProjectException |
when trying to make a call to Composable Commerce with suspended Project
|
| UnauthorizedException |
Unauthorized access to the Composable Commerce API with either invalid client credentials or tokens.
|