Package com.vaadin.quarkus
Class QuarkusVaadinServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.vaadin.flow.server.VaadinServlet
-
- com.vaadin.quarkus.QuarkusVaadinServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class QuarkusVaadinServlet extends com.vaadin.flow.server.VaadinServletServlet to createQuarkusVaadinServletService. An instance of this servlet is automatically registered if no other custom VaadinServlet class with Servlet 3.0 annotations is present on classpath. A subclass of this servlet can be to provide a customizedQuarkusVaadinServletServiceimplementation, in which casecreateServletService(DeploymentConfiguration)must callservice.init().- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QuarkusVaadinServlet()
-
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)voiddestroy()static Optional<String>getCurrentServletName()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, 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
-
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
-
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
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin classcom.vaadin.flow.server.VaadinServlet
-
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 Optional<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()
-
-