Class ExecutionServlet

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    @WebServlet(name="SmallRyeGraphQLExecutionServlet",
                urlPatterns="/graphql/*",
                loadOnStartup=1)
    public class ExecutionServlet
    extends jakarta.servlet.http.HttpServlet
    Executing the GraphQL request
    Author:
    Phillip Kruger (phillip.kruger@redhat.com)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutionServlet()  
      ExecutionServlet​(io.smallrye.graphql.execution.ExecutionService executionService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)  
      protected void doPost​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)  
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Constructor Detail

      • ExecutionServlet

        public ExecutionServlet()
      • ExecutionServlet

        public ExecutionServlet​(io.smallrye.graphql.execution.ExecutionService executionService)
    • Method Detail

      • doGet

        protected void doGet​(jakarta.servlet.http.HttpServletRequest request,
                             jakarta.servlet.http.HttpServletResponse response)
                      throws IOException
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Throws:
        IOException
      • doPost

        protected void doPost​(jakarta.servlet.http.HttpServletRequest request,
                              jakarta.servlet.http.HttpServletResponse response)
                       throws IOException
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Throws:
        IOException