Package com.vaadin.cdi
Class CdiVaadinServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.vaadin.flow.server.VaadinServlet
-
- com.vaadin.cdi.CdiVaadinServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class CdiVaadinServlet extends com.vaadin.flow.server.VaadinServletServlet to createCdiVaadinServletService.An instance of this servlet is automatically deployed by
CdiServletDeployerif no VaadinServlet is deployed based on web.xml or Servlet 3.0 annotations. A subclass of this servlet and ofCdiVaadinServletServicecan be used and explicitly deployed to customize it, in which casecreateServletService(DeploymentConfiguration)must call service.init() .- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CdiVaadinServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.vaadin.flow.server.VaadinServletServicecreateServletService(com.vaadin.flow.function.DeploymentConfiguration configuration)static StringgetCurrentServletName()Name of the Vaadin servlet for the current thread.voidinit(javax.servlet.ServletConfig servletConfig)protected voidservice(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
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classcom.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:
servicein classcom.vaadin.flow.server.VaadinServlet- Throws:
javax.servlet.ServletExceptionIOException
-
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:
createServletServicein classcom.vaadin.flow.server.VaadinServlet- Throws:
com.vaadin.flow.server.ServiceException
-
-