@Configuration
@ConditionalOnWebApplication
@ConditionalOnClass(value=org.springframework.web.servlet.DispatcherServlet.class)
@ConditionalOnBean(value=graphql.schema.GraphQLSchema.class)
@ConditionalOnProperty(value="graphql.servlet.enabled",
havingValue="true",
matchIfMissing=true)
@AutoConfigureAfter(value=GraphQLJavaToolsAutoConfiguration.class)
@EnableConfigurationProperties(value=GraphQLServletProperties.class)
public class GraphQLWebAutoConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MUTATION_EXECUTION_STRATEGY |
static java.lang.String |
QUERY_EXECUTION_STRATEGY |
static java.lang.String |
SUBSCRIPTION_EXECUTION_STRATEGY |
| Constructor and Description |
|---|
GraphQLWebAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.filter.CorsFilter |
corsConfigurer() |
graphql.servlet.ExecutionStrategyProvider |
executionStrategyProvider() |
graphql.servlet.SimpleGraphQLHttpServlet |
graphQLHttpServlet(graphql.servlet.GraphQLInvocationInputFactory invocationInputFactory,
graphql.servlet.GraphQLQueryInvoker queryInvoker,
graphql.servlet.GraphQLObjectMapper graphQLObjectMapper) |
graphql.servlet.GraphQLObjectMapper |
graphQLObjectMapper() |
graphql.servlet.GraphQLSchemaProvider |
graphQLSchemaProvider(graphql.schema.GraphQLSchema schema) |
org.springframework.boot.web.servlet.ServletRegistrationBean<graphql.servlet.AbstractGraphQLHttpServlet> |
graphQLServletRegistrationBean(graphql.servlet.AbstractGraphQLHttpServlet servlet) |
graphql.servlet.GraphQLWebsocketServlet |
graphQLWebsocketServlet(graphql.servlet.GraphQLInvocationInputFactory invocationInputFactory,
graphql.servlet.GraphQLQueryInvoker queryInvoker,
graphql.servlet.GraphQLObjectMapper graphQLObjectMapper) |
graphql.servlet.GraphQLInvocationInputFactory |
invocationInputFactory(graphql.servlet.GraphQLSchemaProvider schemaProvider) |
graphql.servlet.GraphQLQueryInvoker |
queryInvoker(graphql.servlet.ExecutionStrategyProvider executionStrategyProvider) |
org.springframework.web.socket.server.standard.ServerEndpointExporter |
serverEndpointExporter() |
org.springframework.web.socket.server.standard.ServerEndpointRegistration |
serverEndpointRegistration(graphql.servlet.GraphQLWebsocketServlet servlet) |
public static final java.lang.String QUERY_EXECUTION_STRATEGY
public static final java.lang.String MUTATION_EXECUTION_STRATEGY
public static final java.lang.String SUBSCRIPTION_EXECUTION_STRATEGY
@Bean
@ConditionalOnClass(value=org.springframework.web.filter.CorsFilter.class)
@ConditionalOnProperty(value="graphql.servlet.corsEnabled",
havingValue="true",
matchIfMissing=true)
public org.springframework.web.filter.CorsFilter corsConfigurer()
@Bean @ConditionalOnMissingBean public graphql.servlet.GraphQLSchemaProvider graphQLSchemaProvider(graphql.schema.GraphQLSchema schema)
@Bean @ConditionalOnMissingBean public graphql.servlet.ExecutionStrategyProvider executionStrategyProvider()
@Bean @ConditionalOnMissingBean public graphql.servlet.GraphQLInvocationInputFactory invocationInputFactory(graphql.servlet.GraphQLSchemaProvider schemaProvider)
@Bean @ConditionalOnMissingBean public graphql.servlet.GraphQLQueryInvoker queryInvoker(graphql.servlet.ExecutionStrategyProvider executionStrategyProvider)
@Bean @ConditionalOnMissingBean public graphql.servlet.GraphQLObjectMapper graphQLObjectMapper()
@Bean
@ConditionalOnMissingBean
public graphql.servlet.SimpleGraphQLHttpServlet graphQLHttpServlet(graphql.servlet.GraphQLInvocationInputFactory invocationInputFactory,
graphql.servlet.GraphQLQueryInvoker queryInvoker,
graphql.servlet.GraphQLObjectMapper graphQLObjectMapper)
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<graphql.servlet.AbstractGraphQLHttpServlet> graphQLServletRegistrationBean(graphql.servlet.AbstractGraphQLHttpServlet servlet)
@Bean
@ConditionalOnMissingBean
public graphql.servlet.GraphQLWebsocketServlet graphQLWebsocketServlet(graphql.servlet.GraphQLInvocationInputFactory invocationInputFactory,
graphql.servlet.GraphQLQueryInvoker queryInvoker,
graphql.servlet.GraphQLObjectMapper graphQLObjectMapper)
@Bean public org.springframework.web.socket.server.standard.ServerEndpointRegistration serverEndpointRegistration(graphql.servlet.GraphQLWebsocketServlet servlet)
@Bean @ConditionalOnMissingBean public org.springframework.web.socket.server.standard.ServerEndpointExporter serverEndpointExporter()