Package com.commercetools.graphql.api
Class ByProjectKeyGraphqlQuery<T>
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>,GraphQLRequest<T>>
com.commercetools.graphql.api.ByProjectKeyGraphqlQuery<T>
- All Implemented Interfaces:
ErrorableTrait<ByProjectKeyGraphqlQuery<T>>
,ClientRequestCommand<GraphQLResponse<T>>
,CreateHttpRequestCommand
,RequestCommand<GraphQLResponse<T>>
public class ByProjectKeyGraphqlQuery<T>
extends BodyApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>,GraphQLRequest<T>>
implements ErrorableTrait<ByProjectKeyGraphqlQuery<T>>
Execute a GraphQL query
CompletableFuture<ApiHttpResponse<GraphQLDataResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.graphql()
.query(null)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyGraphqlQuery
(ApiHttpClient apiHttpClient, String projectKey, GraphQLRequest<T> graphQLRequest) -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getBody()
int
hashCode()
int
void
setProjectKey
(String projectKey) toString()
withBody
(GraphQLRequest<T> graphQLRequest) Methods inherited from class io.vrap.rmf.base.client.ApiMethod
addHeader, addQueryParam, addQueryParams, contentType, createHttpRequest, execute, execute, execute, execute, execute, execute, execute, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParams
Methods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlocking
Methods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseType
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyGraphqlQuery
public ByProjectKeyGraphqlQuery(ApiHttpClient apiHttpClient, String projectKey, GraphQLRequest<T> graphQLRequest) -
ByProjectKeyGraphqlQuery
-
-
Method Details
-
executeBlocking
- Specified by:
executeBlocking
in interfaceClientRequestCommand<T>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyGraphqlQuery<T>,
GraphQLResponse<T>>
-
execute
- Specified by:
execute
in interfaceClientRequestCommand<T>
- Specified by:
execute
in classApiMethod<ByProjectKeyGraphqlQuery<T>,
GraphQLResponse<T>>
-
getProjectKey
-
setProjectKey
-
getBody
- Overrides:
getBody
in classBodyApiMethod<ByProjectKeyGraphqlQuery<T>,
GraphQLResponse<T>, GraphQLRequest<T>>
-
withBody
- Overrides:
withBody
in classBodyApiMethod<ByProjectKeyGraphqlQuery<T>,
GraphQLResponse<T>, GraphQLRequest<T>>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-