Class AbstractDelegatingGraphQlClient
java.lang.Object
org.springframework.graphql.client.AbstractDelegatingGraphQlClient
- All Implemented Interfaces:
GraphQlClient
Base class for
GraphQlClient
extensions that assist with building an
underlying transport, but otherwise delegate to the default
GraphQlClient
implementation to execute requests.
Subclasses must implement GraphQlClient.mutate()
to return a
builder for the specific GraphQlClient
extension.
- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.graphql.client.GraphQlClient
GraphQlClient.BaseBuilder<B extends GraphQlClient.BaseBuilder<B>>, GraphQlClient.Builder<B extends GraphQlClient.Builder<B>>, GraphQlClient.RequestSpec, GraphQlClient.RetrieveSpec, GraphQlClient.RetrieveSubscriptionSpec, GraphQlClient.RetrieveSyncSpec, GraphQlClient.SyncBuilder<B extends GraphQlClient.SyncBuilder<B>>
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDelegatingGraphQlClient
(GraphQlClient graphQlClient) -
Method Summary
Modifier and TypeMethodDescriptionStart defining a GraphQL request with the given document, which is the textual representation of an operation (or operations) to perform, including selection sets and fragments.documentName
(String name) Variant ofGraphQlClient.document(String)
that uses the given key to resolve the GraphQL document from a file with the help of the configuredDocumentSource
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.graphql.client.GraphQlClient
mutate
-
Constructor Details
-
AbstractDelegatingGraphQlClient
-
-
Method Details
-
document
Description copied from interface:GraphQlClient
Start defining a GraphQL request with the given document, which is the textual representation of an operation (or operations) to perform, including selection sets and fragments.- Specified by:
document
in interfaceGraphQlClient
- Parameters:
document
- the document for the request- Returns:
- spec to further define or execute the request
-
documentName
Description copied from interface:GraphQlClient
Variant ofGraphQlClient.document(String)
that uses the given key to resolve the GraphQL document from a file with the help of the configuredDocumentSource
.- Specified by:
documentName
in interfaceGraphQlClient
- Parameters:
name
- the document name
-