Interface HttpGraphQlClient.Builder<B extends HttpGraphQlClient.Builder<B>>
- Type Parameters:
B
- the builder type
- All Superinterfaces:
GraphQlClient.BaseBuilder<B>
,GraphQlClient.Builder<B>
,WebGraphQlClient.Builder<B>
- Enclosing interface:
- HttpGraphQlClient
public static interface HttpGraphQlClient.Builder<B extends HttpGraphQlClient.Builder<B>>
extends WebGraphQlClient.Builder<B>
Builder for the GraphQL over HTTP client.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theHttpGraphQlClient
instance.webClient
(Consumer<WebClient.Builder> webClient) Customize theWebClient
to use.Methods inherited from interface org.springframework.graphql.client.GraphQlClient.BaseBuilder
blockingTimeout, documentSource
Methods inherited from interface org.springframework.graphql.client.GraphQlClient.Builder
interceptor, interceptors
Methods inherited from interface org.springframework.graphql.client.WebGraphQlClient.Builder
codecConfigurer, header, headers, url, url
-
Method Details
-
webClient
Customize theWebClient
to use.Note that some properties of
WebClient.Builder
like the base URL, headers, and codecs can be customized through this builder.- Parameters:
webClient
- the function for customizing theWebClient.Builder
that's used to build the HTTP client- See Also:
-
build
HttpGraphQlClient build()Build theHttpGraphQlClient
instance.- Specified by:
build
in interfaceGraphQlClient.BaseBuilder<B extends HttpGraphQlClient.Builder<B>>
- Specified by:
build
in interfaceWebGraphQlClient.Builder<B extends HttpGraphQlClient.Builder<B>>
-