Class ConfluenceGraphQLRestEndpoint
java.lang.Object
com.atlassian.confluence.plugins.graphql.resource.ConfluenceGraphQLRestEndpoint
Provides the REST API endpoint for GraphQL.
- Since:
- 6.12.0
-
Constructor Summary
ConstructorsConstructorDescriptionConfluenceGraphQLRestEndpoint
(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, com.atlassian.sal.api.rdbms.TransactionalExecutorFactory transactionalExecutorFactory, ObjectMapperProvider objectMapperProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
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
init()
-
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
-