@Configuration
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(value={org.springframework.web.servlet.DispatcherServlet.class,org.springframework.web.socket.server.standard.ServerEndpointRegistration.class})
@Conditional(value=OnSchemaOrSchemaProviderBean.class)
@ConditionalOnProperty(value="graphql.servlet.websocket.enabled",
havingValue="true",
matchIfMissing=true)
@AutoConfigureAfter(value={GraphQLJavaToolsAutoConfiguration.class,GraphQLWebAutoConfiguration.class})
@EnableConfigurationProperties(value={graphql.kickstart.autoconfigure.web.servlet.GraphQLSubscriptionApolloProperties.class,graphql.kickstart.autoconfigure.web.servlet.GraphQLSubscriptionWebsocketProperties.class})
public class GraphQLWebsocketAutoConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
GraphQLWebsocketAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
graphql.kickstart.servlet.GraphQLWebsocketServlet |
graphQLWebsocketServlet(graphql.kickstart.execution.subscriptions.GraphQLSubscriptionInvocationInputFactory invocationInputFactory,
graphql.kickstart.execution.GraphQLInvoker graphQLInvoker,
graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper,
java.util.Collection<graphql.kickstart.execution.subscriptions.SubscriptionConnectionListener> connectionListeners) |
org.springframework.web.socket.server.standard.ServerEndpointExporter |
serverEndpointExporter() |
org.springframework.web.socket.server.standard.ServerEndpointRegistration |
serverEndpointRegistration(graphql.kickstart.servlet.GraphQLWebsocketServlet servlet) |
@Bean
@ConditionalOnMissingBean
public graphql.kickstart.servlet.GraphQLWebsocketServlet graphQLWebsocketServlet(graphql.kickstart.execution.subscriptions.GraphQLSubscriptionInvocationInputFactory invocationInputFactory,
graphql.kickstart.execution.GraphQLInvoker graphQLInvoker,
graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper,
@Autowired(required=false)
java.util.Collection<graphql.kickstart.execution.subscriptions.SubscriptionConnectionListener> connectionListeners)
@Bean @ConditionalOnClass(value=javax.websocket.server.ServerContainer.class) public org.springframework.web.socket.server.standard.ServerEndpointRegistration serverEndpointRegistration(graphql.kickstart.servlet.GraphQLWebsocketServlet servlet)
@Bean @ConditionalOnMissingBean @ConditionalOnClass(value=javax.websocket.server.ServerContainer.class) public org.springframework.web.socket.server.standard.ServerEndpointExporter serverEndpointExporter()