Interface HttpGraphQlClient.Builder<B extends HttpGraphQlClient.Builder<B>>
- Type Parameters:
B- the builder type
- All Superinterfaces:
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 theHttpGraphQlClientinstance.webClient(Consumer<WebClient.Builder> webClient) Customize theWebClientto use.Methods inherited from interface org.springframework.graphql.client.GraphQlClient.Builder
documentSource, interceptor, interceptorsMethods inherited from interface org.springframework.graphql.client.WebGraphQlClient.Builder
codecConfigurer, header, headers, url, url
-
Method Details
-
webClient
Customize theWebClientto use.Note that some properties of
WebClient.Builderlike the base URL, headers, and codecs can be customized through this builder.- Parameters:
webClient- the function for customizing theWebClient.Builderthat's used to build the HTTP client- See Also:
-
build
HttpGraphQlClient build()Build theHttpGraphQlClientinstance.- Specified by:
buildin interfaceGraphQlClient.Builder<B extends HttpGraphQlClient.Builder<B>>- Specified by:
buildin interfaceWebGraphQlClient.Builder<B extends HttpGraphQlClient.Builder<B>>
-