| Package | Description |
|---|---|
| com.adobe.cq.commerce.graphql.client |
Copyright 2020 Adobe.
|
| com.adobe.cq.commerce.graphql.client.impl |
| Modifier and Type | Method and Description |
|---|---|
RequestOptions |
RequestOptions.withCachingStrategy(CachingStrategy cachingStrategy) |
RequestOptions |
RequestOptions.withGson(com.google.gson.Gson gson)
Sets the
Gson instance that will be used to deserialise the JSON response. |
RequestOptions |
RequestOptions.withHeaders(List<org.apache.http.Header> headers)
Permits to define HTTP headers that will be sent with the GraphQL request.
|
RequestOptions |
RequestOptions.withHttpMethod(HttpMethod httpMethod)
Sets the HTTP method used to send the request, only GET or POST are supported.
|
| Modifier and Type | Method and Description |
|---|---|
<T,U> GraphqlResponse<T,U> |
GraphqlClient.execute(GraphqlRequest request,
Type typeOfT,
Type typeOfU,
RequestOptions options)
Executes the given GraphQL request and deserializes the response data based on the types T and U.
|
| Modifier and Type | Method and Description |
|---|---|
<T,U> GraphqlResponse<T,U> |
GraphqlClientImpl.execute(GraphqlRequest request,
Type typeOfT,
Type typeofU,
RequestOptions options) |
Copyright © 2021 Adobe. All rights reserved.