Class CdiVaadinServlet

    • Field Summary

      • Fields inherited from class com.vaadin.flow.server.VaadinServlet

        INTERNAL_VAADIN_SERVLET_VITE_DEV_MODE_FRONTEND_PATH
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.vaadin.flow.server.VaadinServletService createServletService​(com.vaadin.flow.function.DeploymentConfiguration configuration)  
      static String getCurrentServletName()
      Name of the Vaadin servlet for the current thread.
      void init​(javax.servlet.ServletConfig servletConfig)  
      protected void service​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class com.vaadin.flow.server.VaadinServlet

        createDeploymentConfiguration, createDeploymentConfiguration, createServletService, createStaticFileHandler, createVaadinRequest, destroy, getCurrent, getFrontendMapping, getLastPathParameter, getService, getServletConfig, handleContextOrServletRootWithoutSlash, serveStaticOrWebJarRequest, servletInitialized
      • Methods inherited from class javax.servlet.http.HttpServlet

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

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

      • CdiVaadinServlet

        public CdiVaadinServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig servletConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class com.vaadin.flow.server.VaadinServlet
        Throws:
        javax.servlet.ServletException
      • service

        protected void service​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               IOException
        Overrides:
        service in class com.vaadin.flow.server.VaadinServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • getCurrentServletName

        public static String getCurrentServletName()
        Name of the Vaadin servlet for the current thread.

        Until VaadinService appears in CurrentInstance, it have to be used to get the servlet name.

        This method is meant for internal use only.

        Returns:
        currently processing vaadin servlet name
        See Also:
        VaadinServlet.getCurrent()
      • createServletService

        protected com.vaadin.flow.server.VaadinServletService createServletService​(com.vaadin.flow.function.DeploymentConfiguration configuration)
                                                                            throws com.vaadin.flow.server.ServiceException
        Overrides:
        createServletService in class com.vaadin.flow.server.VaadinServlet
        Throws:
        com.vaadin.flow.server.ServiceException