public static interface GraphQlClient.Builder<B extends GraphQlClient.Builder<B>>
GraphQlClient
instances.Modifier and Type | Method and Description |
---|---|
GraphQlClient |
build()
Build the
GraphQlClient instance. |
B |
documentSource(DocumentSource contentLoader)
Configure a
DocumentSource for use with
GraphQlClient.documentName(String) for resolving a document by name. |
B |
interceptor(GraphQlClientInterceptor... interceptors)
Configure interceptors to be invoked before delegating to the
GraphQlTransport to perform the request. |
B |
interceptors(Consumer<List<GraphQlClientInterceptor>> interceptorsConsumer)
Customize the list of interceptors.
|
B interceptor(GraphQlClientInterceptor... interceptors)
GraphQlTransport
to perform the request.interceptors
- the interceptors to addB interceptors(Consumer<List<GraphQlClientInterceptor>> interceptorsConsumer)
interceptorsConsumer
- consumer to customize the interceptors withB documentSource(DocumentSource contentLoader)
DocumentSource
for use with
GraphQlClient.documentName(String)
for resolving a document by name.
By default, this is set to ResourceDocumentSource
with
classpath location "graphql-documents/"
and
ResourceDocumentSource.FILE_EXTENSIONS
as extensions.
GraphQlClient build()
GraphQlClient
instance.