Class ConfluenceGraphQLRestEndpoint


  • @Component
    public class ConfluenceGraphQLRestEndpoint
    extends Object
    Provides the REST API endpoint for GraphQL.
    Since:
    6.12.0
    • Constructor Detail

      • ConfluenceGraphQLRestEndpoint

        @Autowired
        public ConfluenceGraphQLRestEndpoint​(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                             com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
                                             com.atlassian.sal.api.rdbms.TransactionalExecutorFactory transactionalExecutorFactory)
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • destroy

        @PreDestroy
        public void destroy()
      • handleEvent

        @EventListener
        public void handleEvent​(com.atlassian.plugin.event.events.PluginEnabledEvent event)
      • handleEvent

        @EventListener
        public void handleEvent​(com.atlassian.plugin.event.events.PluginDisabledEvent event)
      • handleEvent

        @EventListener
        public void handleEvent​(com.atlassian.plugin.event.events.PluginUpgradedEvent event)
      • getSchema

        public graphql.schema.GraphQLSchema getSchema()
      • execute

        public Object execute​(String requestString,
                              String query,
                              @Context
                              javax.ws.rs.core.UriInfo uriInfo,
                              @Context
                              javax.servlet.http.HttpServletRequest request)
                       throws Exception
        Throws:
        Exception