public class CdiVaadinServlet
extends com.vaadin.flow.server.VaadinServlet
CdiVaadinServletService.
An instance of this servlet is automatically deployed by
CdiServletDeployer if no VaadinServlet is deployed based on web.xml or
Servlet 3.0 annotations. A subclass of this servlet and of
CdiVaadinServletService can be used and explicitly deployed
to customize it, in which case
createServletService(DeploymentConfiguration) must call
service.init() .
| Constructor and Description |
|---|
CdiVaadinServlet() |
| Modifier and Type | Method and 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) |
createDeploymentConfiguration, createDeploymentConfiguration, createServletService, createVaadinRequest, destroy, getApplicationUrl, getCurrent, getLastPathParameter, getService, getWebJarServer, handleContextOrServletRootWithoutSlash, safeEscapeForHtml, serveStaticOrWebJarRequest, servletInitializeddoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class com.vaadin.flow.server.VaadinServletjavax.servlet.ServletExceptionprotected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class com.vaadin.flow.server.VaadinServletjavax.servlet.ServletExceptionIOExceptionpublic static String getCurrentServletName()
Until VaadinService appears in CurrentInstance, it have to be used to get the servlet name.
This method is meant for internal use only.
VaadinServlet.getCurrent()protected com.vaadin.flow.server.VaadinServletService createServletService(com.vaadin.flow.function.DeploymentConfiguration configuration)
throws com.vaadin.flow.server.ServiceException
createServletService in class com.vaadin.flow.server.VaadinServletcom.vaadin.flow.server.ServiceExceptionCopyright © 2018 Vaadin Ltd. All Rights Reserved.