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
ConstructorsConstructorDescriptionByProjectKeyGraphqlQuery(ApiHttpClient apiHttpClient, String projectKey, GraphQLRequest<T> graphQLRequest) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(ApiHttpClient client) executeBlocking(ApiHttpClient client, Duration timeout) getBody()inthashCode()intvoidsetProjectKey(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, withQueryParamsMethods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlockingMethods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseTypeMethods 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:
executeBlockingin interfaceClientRequestCommand<T>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>>
-
execute
- Specified by:
executein interfaceClientRequestCommand<T>- Specified by:
executein classApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>>
-
getProjectKey
-
setProjectKey
-
getBody
- Overrides:
getBodyin classBodyApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>, GraphQLRequest<T>>
-
withBody
- Overrides:
withBodyin classBodyApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>, GraphQLRequest<T>>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-