Interface HttpGraphQlClient
- All Superinterfaces:
GraphQlClient
,WebGraphQlClient
GraphQL over HTTP client that uses
WebClient
.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
HttpGraphQlClient.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 anHttpGraphQlClient
with.static HttpGraphQlClient.Builder<?>
Variant ofbuilder()
with a pre-configuredWebClient
to mutate and customize further through the returned builder.static HttpGraphQlClient.Builder<?>
builder
(WebClient.Builder webClientBuilder) Variant ofbuilder()
with a pre-configuredWebClient
to mutate and customize further through the returned builder.static HttpGraphQlClient
Create anHttpGraphQlClient
that 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:GraphQlClient
Return a builder initialized from the configuration of "this" client to use to build a new, independently configured client instance.- Specified by:
mutate
in interfaceGraphQlClient
- Specified by:
mutate
in interfaceWebGraphQlClient
-
create
Create anHttpGraphQlClient
that uses the givenWebClient
.- Parameters:
webClient
- theWebClient
to use for sending HTTP requests
-
builder
Return a builder to initialize anHttpGraphQlClient
with. -
builder
Variant ofbuilder()
with a pre-configuredWebClient
to mutate and customize further through the returned builder.- Parameters:
webClient
- theWebClient
to use for sending HTTP requests
-
builder
Variant ofbuilder()
with a pre-configuredWebClient
to mutate and customize further through the returned builder.- Parameters:
webClientBuilder
- theWebClient.Builder
to use for building the HTTP client
-