| Package | Description |
|---|---|
| org.springframework.graphql.client |
This package contains a
GraphQlClient
along with HTTP and WebSocket extensions. |
| org.springframework.graphql.test.tester |
GraphQL client testing support.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpGraphQlClient
GraphQL over HTTP client that uses
WebClient. |
interface |
RSocketGraphQlClient
GraphQL over RSocket client that uses
RSocketRequester. |
interface |
WebGraphQlClient
Base contract for the HTTP and WebSocket
GraphQlClient extensions. |
interface |
WebSocketGraphQlClient
GraphQL over WebSocket client that uses
WebSocketClient. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDelegatingGraphQlClient
Base class for
GraphQlClient extensions that assist with building an
underlying transport, but otherwise delegate to the default
GraphQlClient implementation to execute requests. |
| Modifier and Type | Method and Description |
|---|---|
GraphQlClient |
GraphQlClient.Builder.build()
Build the
GraphQlClient instance. |
protected GraphQlClient |
AbstractGraphQlClientBuilder.buildGraphQlClient(GraphQlTransport transport)
Build the default transport-agnostic client that subclasses can then wrap
with
AbstractDelegatingGraphQlClient. |
| Constructor and Description |
|---|
AbstractDelegatingGraphQlClient(GraphQlClient graphQlClient) |
| Modifier and Type | Method and Description |
|---|---|
protected static GraphQlTransport |
AbstractGraphQlTesterBuilder.asTransport(GraphQlClient client)
For cases where the Tester needs the
GraphQlTransport, we can't use
transports directly since they are package private, but we can adapt the corresponding
GraphQlClient and adapt it to GraphQlTransport. |