Class ConfluenceGraphQLRestEndpoint

java.lang.Object
com.atlassian.confluence.plugins.graphql.resource.ConfluenceGraphQLRestEndpoint

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

    Constructors
    Constructor
    Description
    ConfluenceGraphQLRestEndpoint(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.sal.api.rdbms.TransactionalExecutorFactory transactionalExecutorFactory, ObjectMapperProvider objectMapperProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    execute(String requestString, String query, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest request)
     
    graphql.schema.GraphQLSchema
     
    void
    handleEvent(com.atlassian.plugin.event.events.PluginDisabledEvent event)
     
    void
    handleEvent(com.atlassian.plugin.event.events.PluginEnabledEvent event)
     
    void
    handleEvent(com.atlassian.plugin.event.events.PluginUpgradedEvent event)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfluenceGraphQLRestEndpoint

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

    • 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, @QueryParam("query") String query, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest request) throws Exception
      Throws:
      Exception