Class KernelServlet

    • Constructor Detail

      • KernelServlet

        public KernelServlet()
    • Method Detail

      • getGlobalParameters

        public static ConfigParameters getGlobalParameters()
        Returns:
        the parameters as they are defined in the servlet context.
      • getServletPathPart

        public static String getServletPathPart()
      • init

        public void init​(javax.servlet.ServletConfig config)
        Description copied from class: HttpBaseServlet
        Loads basic configuration settings that this class and all that extend it require to function properly. Also instantiates XmlEngine object. This method is called upon load of the class, which is configured to be loaded upon start of the application server. See also web.xml (load-on-startup).
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class BaseKernelServlet
      • service

        public void service​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws javax.servlet.ServletException,
                            IOException
        Description copied from class: HttpBaseServlet
        A dispatcher method that calls the initialization upon every request to the servlet before it hands over the final dispatchment to the HttpServlet base class.
        Overrides:
        service in class BaseKernelServlet
        Parameters:
        request - HttpServletRequest object where details of the HTTP request are.
        response - HttpServletResponse object where the response will be written and returned to the user.
        Throws:
        javax.servlet.ServletException
        IOException
      • doOptions

        public void doOptions​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              IOException
        Overrides:
        doOptions in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • setCORSHeaders

        protected void setCORSHeaders​(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response)
                               throws javax.servlet.ServletException,
                                      IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException,
                          javax.servlet.ServletException
        Description copied from class: HttpBaseServlet
        Redirects all HTTP GET requests to be handled by the doPost method of the extending class.
        Overrides:
        doGet in class HttpBaseServlet
        Parameters:
        request - HttpServletRequest object where details of the HTTP request are.
        response - HttpServletResponse object where the response will be written and returned to the user.
        Throws:
        IOException
        javax.servlet.ServletException
      • processComponentRequest

        protected void processComponentRequest​(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response)
                                        throws IOException,
                                               javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        IOException
        javax.servlet.ServletException
      • processActionRequest

        protected void processActionRequest​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                                     throws IOException,
                                            javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • doDelete

        public void doDelete​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws IOException,
                             javax.servlet.ServletException
        Overrides:
        doDelete in class javax.servlet.http.HttpServlet
        Throws:
        IOException
        javax.servlet.ServletException
      • doPut

        public void doPut​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException,
                          javax.servlet.ServletException
        Overrides:
        doPut in class javax.servlet.http.HttpServlet
        Throws:
        IOException
        javax.servlet.ServletException