Package com.vaadin.quarkus
Class QuarkusVaadinServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.vaadin.flow.server.VaadinServlet
com.vaadin.quarkus.QuarkusVaadinServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- Direct Known Subclasses:
MockQuarkusServlet
Servlet to create
QuarkusVaadinServletService.
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 customized
QuarkusVaadinServletService implementation, in which case
createServletService(DeploymentConfiguration) must call
service.init().- See Also:
-
Field Summary
Fields inherited from class com.vaadin.flow.server.VaadinServlet
INTERNAL_VAADIN_SERVLET_VITE_DEV_MODE_FRONTEND_PATHFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected VaadinServletServicecreateServletService(DeploymentConfiguration configuration) Creates a vaadin servlet service.voiddestroy()Name of the Vaadin servlet for the current thread.voidinit(jakarta.servlet.ServletConfig servletConfig) Called by the servlet container to indicate to a servlet that the servlet is being placed into service.protected voidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Receives standard HTTP requests from the public service method and dispatches them.Methods inherited from class com.vaadin.flow.server.VaadinServlet
createDeploymentConfiguration, createDeploymentConfiguration, createServletService, createStaticFileHandler, createVaadinRequest, getCurrent, getFrontendMapping, getLastPathParameter, getService, getServletConfig, handleContextOrServletRootWithoutSlash, serveStaticOrWebJarRequest, servletInitialized, whenFrontendMappingAvailableMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, isSensitiveHeader, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
QuarkusVaadinServlet
public QuarkusVaadinServlet()
-
-
Method Details
-
createServletService
protected VaadinServletService createServletService(DeploymentConfiguration configuration) throws ServiceException Description copied from class:VaadinServletCreates a vaadin servlet service.- Overrides:
createServletServicein classVaadinServlet- Parameters:
configuration- the deployment configuration to be used- Returns:
- the created vaadin servlet service
- Throws:
ServiceException- if creating the vaadin servlet service fails
-
init
public void init(jakarta.servlet.ServletConfig servletConfig) throws jakarta.servlet.ServletException Description copied from class:VaadinServletCalled by the servlet container to indicate to a servlet that the servlet is being placed into service.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classVaadinServlet- Parameters:
servletConfig- the object containing the servlet's configuration and initialization parameters- Throws:
jakarta.servlet.ServletException- if an exception has occurred that interferes with the servlet's normal operation.
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classVaadinServlet
-
service
protected void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException Description copied from class:VaadinServletReceives standard HTTP requests from the public service method and dispatches them.- Overrides:
servicein classVaadinServlet- Parameters:
request- the object that contains the request the client made of the servlet.response- the object that contains the response the servlet returns to the client.- Throws:
jakarta.servlet.ServletException- if an input or output error occurs while the servlet is handling the TRACE request.IOException- if the request for the TRACE cannot be handled.
-
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:
-