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:
com.commercetools.api.client.ErrorableTrait<ByProjectKeyGraphqlQuery<T>>,io.vrap.rmf.base.client.ClientRequestCommand<GraphQLResponse<T>>,io.vrap.rmf.base.client.CreateHttpRequestCommand,io.vrap.rmf.base.client.RequestCommand<GraphQLResponse<T>>
public class ByProjectKeyGraphqlQuery<T>
extends io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>,GraphQLRequest<T>>
implements com.commercetools.api.client.ErrorableTrait<ByProjectKeyGraphqlQuery<T>>
Execute a GraphQL query
CompletableFuture<ApiHttpResponse<GraphQLDataResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.graphql()
.query(null)
.execute()
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyGraphqlQuery(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, GraphQLRequest<T> graphQLRequest) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<GraphQLResponse<T>>>execute(io.vrap.rmf.base.client.ApiHttpClient client) io.vrap.rmf.base.client.ApiHttpResponse<GraphQLResponse<T>>executeBlocking(io.vrap.rmf.base.client.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(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, GraphQLRequest<T> graphQLRequest) -
ByProjectKeyGraphqlQuery
-
-
Method Details
-
executeBlocking
public io.vrap.rmf.base.client.ApiHttpResponse<GraphQLResponse<T>> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) - Specified by:
executeBlockingin interfaceio.vrap.rmf.base.client.ClientRequestCommand<T>- Specified by:
executeBlockingin classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>>
-
execute
public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<GraphQLResponse<T>>> execute(io.vrap.rmf.base.client.ApiHttpClient client) - Specified by:
executein interfaceio.vrap.rmf.base.client.ClientRequestCommand<T>- Specified by:
executein classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>>
-
getProjectKey
-
setProjectKey
-
getBody
- Overrides:
getBodyin classio.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>, GraphQLRequest<T>>
-
withBody
- Overrides:
withBodyin classio.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyGraphqlQuery<T>,GraphQLResponse<T>, GraphQLRequest<T>>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-