Class GraphQLAutoConfiguration
java.lang.Object
com.graphql_java_generator.spring.client.GraphQLAutoConfiguration
@Configuration
public class GraphQLAutoConfiguration
extends java.lang.Object
This classes allows to autoconfigure Spring, with a full default behavior, ready to use. This can be overridden by
Spring
Important notice: This class must not be the target of component scanning. See https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-developing-auto-configuration for more information
Bean
or Component
, in the application configuration.Important notice: This class must not be the target of component scanning. See https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-developing-auto-configuration for more information
- Author:
- etienne-sf
-
Constructor Summary
Constructors Constructor Description GraphQLAutoConfiguration()
-
Method Summary
Modifier and Type Method Description org.springframework.web.reactive.function.client.WebClient
webClient(java.lang.String graphqlEndpoint, reactor.netty.http.client.HttpClient httpClient, org.springframework.security.oauth2.client.web.reactive.function.client.ServerOAuth2AuthorizedClientExchangeFilterFunction oauthFilter)
The Spring reactiveWebClient
that will execute the HTTP requests for GraphQL queries and mutations.org.springframework.web.reactive.socket.client.WebSocketClient
webSocketClient(reactor.netty.http.client.HttpClient httpClient)
The Spring reactiveWebSocketClient
web socket client, that will execute HTTP requests to build the web sockets, for GraphQL subscriptions.
This is mandatory if the application latter calls subscription.
-
Constructor Details
-
GraphQLAutoConfiguration
public GraphQLAutoConfiguration()
-
-
Method Details
-
webClient
@Bean @ConditionalOnMissingBean public org.springframework.web.reactive.function.client.WebClient webClient(java.lang.String graphqlEndpoint, @Autowired(required=false) reactor.netty.http.client.HttpClient httpClient, @Autowired(required=false) org.springframework.security.oauth2.client.web.reactive.function.client.ServerOAuth2AuthorizedClientExchangeFilterFunction oauthFilter)The Spring reactiveWebClient
that will execute the HTTP requests for GraphQL queries and mutations. -
webSocketClient
@Bean @ConditionalOnMissingBean public org.springframework.web.reactive.socket.client.WebSocketClient webSocketClient(@Autowired(required=false) reactor.netty.http.client.HttpClient httpClient)The Spring reactiveWebSocketClient
web socket client, that will execute HTTP requests to build the web sockets, for GraphQL subscriptions.
This is mandatory if the application latter calls subscription. It may be null otherwise.
-