Interface HttpGraphQlClient
- All Superinterfaces:
GraphQlClient,WebGraphQlClient
GraphQL over HTTP client that uses
WebClient.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceHttpGraphQlClient.Builder<B extends HttpGraphQlClient.Builder<B>>Builder for the GraphQL over HTTP client.Nested classes/interfaces inherited from interface org.springframework.graphql.client.GraphQlClient
GraphQlClient.BaseBuilder<B extends GraphQlClient.BaseBuilder<B>>, GraphQlClient.RequestSpec, GraphQlClient.RetrieveSpec, GraphQlClient.RetrieveSubscriptionSpec, GraphQlClient.RetrieveSyncSpec, GraphQlClient.SyncBuilder<B extends GraphQlClient.SyncBuilder<B>> -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpGraphQlClient.Builder<?> builder()Return a builder to initialize anHttpGraphQlClientwith.static HttpGraphQlClient.Builder<?> Variant ofbuilder()with a pre-configuredWebClientto mutate and customize further through the returned builder.static HttpGraphQlClient.Builder<?> builder(WebClient.Builder webClientBuilder) Variant ofbuilder()with a pre-configuredWebClientto mutate and customize further through the returned builder.static HttpGraphQlClientCreate anHttpGraphQlClientthat uses the givenWebClient.mutate()Return a builder initialized from the configuration of "this" client to use to build a new, independently configured client instance.Methods inherited from interface org.springframework.graphql.client.GraphQlClient
document, documentName
-
Method Details
-
mutate
HttpGraphQlClient.Builder<?> mutate()Description copied from interface:GraphQlClientReturn a builder initialized from the configuration of "this" client to use to build a new, independently configured client instance.- Specified by:
mutatein interfaceGraphQlClient- Specified by:
mutatein interfaceWebGraphQlClient
-
create
Create anHttpGraphQlClientthat uses the givenWebClient.- Parameters:
webClient- theWebClientto use for sending HTTP requests
-
builder
Return a builder to initialize anHttpGraphQlClientwith. -
builder
Variant ofbuilder()with a pre-configuredWebClientto mutate and customize further through the returned builder.- Parameters:
webClient- theWebClientto use for sending HTTP requests
-
builder
Variant ofbuilder()with a pre-configuredWebClientto mutate and customize further through the returned builder.- Parameters:
webClientBuilder- theWebClient.Builderto use for building the HTTP client
-