Package | Description |
---|---|
io.sphere.sdk.client |
Provides types to connect to the API via HTTPS.
|
io.sphere.sdk.client.metrics |
Provides classes to collect metrics about a
SphereClient . |
io.sphere.sdk.commands |
This package provide tools to change objects in Composable Commerce.
|
io.sphere.sdk.customobjects.commands |
Provides types to change the state of custom objects.
|
io.sphere.sdk.http |
Provides types to deal with HTTP.
|
io.sphere.sdk.json |
Provides utils the JSON mapping for resources specific to Composable Commerce.
|
io.sphere.sdk.models |
Provides the common API types of Composable Commerce.
|
io.sphere.sdk.productdiscounts.queries |
Provides types to retrieve the state of product discounts.
|
io.sphere.sdk.projects.queries |
Provides the project endpoint.
|
io.sphere.sdk.queries |
Provides types to prepare and receive queries.
|
io.sphere.sdk.search |
Provides types to perform searches.
|
io.sphere.sdk.utils |
Provides utilities for miscellaneous things.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.lang3.tuple.Pair<T,HttpResponse> |
JavaAndHttpResponseSphereRequest.deserialize(HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
boolean |
JavaAndJsonSphereRequest.canDeserialize(HttpResponse httpResponse) |
boolean |
SphereRequestDecorator.canDeserialize(HttpResponse httpResponse) |
default boolean |
SphereRequest.canDeserialize(HttpResponse httpResponse)
Checks if the response can be handled by
SphereRequest.deserialize(HttpResponse) . |
boolean |
JavaAndHttpResponseSphereRequest.canDeserialize(HttpResponse httpResponse) |
org.apache.commons.lang3.tuple.Pair<T,com.fasterxml.jackson.databind.JsonNode> |
JavaAndJsonSphereRequest.deserialize(HttpResponse httpResponse) |
T |
SphereRequestDecorator.deserialize(HttpResponse httpResponse) |
T |
SphereRequest.deserialize(HttpResponse httpResponse)
Takes an http response and maps it into a Java object of type T.
|
org.apache.commons.lang3.tuple.Pair<T,HttpResponse> |
JavaAndHttpResponseSphereRequest.deserialize(HttpResponse httpResponse) |
com.fasterxml.jackson.databind.JsonNode |
JsonNodeSphereRequest.deserialize(HttpResponse httpResponse) |
static <T> T |
SphereRequestUtils.deserialize(HttpResponse httpResponse,
com.fasterxml.jackson.databind.JavaType javaType) |
static <T> T |
SphereRequestUtils.deserialize(HttpResponse httpResponse,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference) |
static String |
SphereRequestUtils.getBodyAsString(HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
static SphereClient |
TestDoubleSphereClientFactory.createHttpTestDouble(Function<HttpRequestIntent,HttpResponse> function)
Creates a test double for a Composable Commerce client which enables to fake http responses from the API.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
ObservedDeserializationDuration.getHttpResponse() |
Modifier and Type | Method and Description |
---|---|
static ObservedDeserializationDuration |
ObservedDeserializationDuration.of(long durationInMilliseconds,
String sphereRequestId,
SphereRequest<?> request,
String correlationId,
HttpResponse httpResponse,
Object result) |
Modifier and Type | Method and Description |
---|---|
T |
CommandImpl.deserialize(HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
abstract CustomObject<T> |
CustomObjectCustomJsonMappingUpsertCommand.deserialize(HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
static HttpResponse |
HttpResponse.of(Integer status) |
static HttpResponse |
HttpResponse.of(Integer status,
byte[] body,
HttpRequest associatedRequest) |
static HttpResponse |
HttpResponse.of(Integer status,
byte[] body,
HttpRequest associatedRequest,
HttpHeaders headers) |
static HttpResponse |
HttpResponse.of(Integer status,
HttpHeaders headers) |
static HttpResponse |
HttpResponse.of(Integer status,
String responseBody) |
static HttpResponse |
HttpResponse.of(Integer status,
String responseBody,
HttpHeaders headers) |
static HttpResponse |
HttpResponse.of(Integer status,
String responseBody,
HttpRequest associatedRequest) |
static HttpResponse |
HttpResponse.of(Integer status,
String responseBody,
HttpRequest associatedRequest,
HttpHeaders headers) |
default HttpResponse |
HttpResponse.withoutRequest() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<HttpResponse> |
HttpClient.execute(HttpRequest httpRequest) |
CompletionStage<HttpResponse> |
HttpClientAdapterBase.execute(HttpRequest httpRequest) |
protected abstract CompletionStage<HttpResponse> |
HttpClientAdapterBase.executeDelegate(HttpRequest httpRequest) |
Constructor and Description |
---|
JsonException(HttpResponse httpResponse) |
Modifier and Type | Field and Description |
---|---|
protected HttpResponse |
SphereException.httpResponse |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
SphereException.getHttpResponse() |
Modifier and Type | Method and Description |
---|---|
void |
SphereException.setUnderlyingHttpResponse(HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
ProductDiscount |
MatchingProductDiscountGet.deserialize(HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
Project |
ProjectGet.deserialize(HttpResponse httpResponse) |
Modifier and Type | Field and Description |
---|---|
protected Function<HttpResponse,PagedQueryResult<T>> |
MetaModelQueryDslBuilder.resultMapper |
Modifier and Type | Method and Description |
---|---|
boolean |
MetaModelGetDslImpl.canDeserialize(HttpResponse httpResponse) |
boolean |
MetaModelHeadDslImpl.canDeserialize(HttpResponse httpResponse) |
T |
Head.deserialize(HttpResponse httpResponse) |
R |
MetaModelGetDslImpl.deserialize(HttpResponse httpResponse) |
PagedQueryResult<T> |
MetaModelQueryDslImpl.deserialize(HttpResponse httpResponse) |
T |
Get.deserialize(HttpResponse httpResponse) |
R |
MetaModelHeadDslImpl.deserialize(HttpResponse httpResponse) |
PagedQueryResult<T> |
Query.deserialize(HttpResponse httpResponse) |
Constructor and Description |
---|
MetaModelQueryDslImpl(List<QueryPredicate<T>> predicate,
List<QuerySort<T>> sort,
Boolean fetchTotal,
Long limit,
Long offset,
String endpoint,
Function<HttpResponse,PagedQueryResult<T>> resultMapper,
List<ExpansionPath<T>> expansionPaths,
List<NameValuePair> additionalHttpQueryParameters,
Q queryModel,
E expansionModel,
Function<MetaModelQueryDslBuilder<T,C,Q,E>,C> queryDslBuilderFunction) |
Modifier and Type | Field and Description |
---|---|
protected Function<HttpResponse,PagedSearchResult<T>> |
MetaModelSearchDslBuilder.resultMapper |
Modifier and Type | Method and Description |
---|---|
PagedSearchResult<T> |
MetaModelSearchDslImpl.deserialize(HttpResponse httpResponse) |
PagedSearchResult<T> |
Search.deserialize(HttpResponse httpResponse) |
Constructor and Description |
---|
MetaModelSearchDslBuilder(String endpoint,
Function<HttpResponse,PagedSearchResult<T>> resultMapper,
S sortModel,
L filterModel,
F facetModel,
E expansionModel,
Function<MetaModelSearchDslBuilder<T,C,S,L,F,E>,C> searchDslBuilderFunction) |
MetaModelSearchDslImpl(LocalizedStringEntry text,
Boolean fuzzy,
Integer fuzzyLevel,
List<FacetExpression<T>> facets,
List<FilterExpression<T>> resultFilters,
List<FilterExpression<T>> queryFilters,
List<FilterExpression<T>> facetFilters,
List<FacetedSearchExpression<T>> facetedSearch,
List<SortExpression<T>> sort,
Long limit,
Long offset,
String endpoint,
Function<HttpResponse,PagedSearchResult<T>> resultMapper,
List<ExpansionPath<T>> expansionPaths,
List<NameValuePair> additionalQueryParameters,
S sortModel,
L filterModel,
F facetModel,
E expansionModel,
Function<MetaModelSearchDslBuilder<T,C,S,L,F,E>,C> searchDslBuilderFunction) |
Modifier and Type | Method and Description |
---|---|
static SphereInternalLogger |
SphereInternalLogger.getLogger(HttpResponse response) |