Class OSGiVaadinServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.vaadin.flow.server.VaadinServlet
-
- com.vaadin.flow.osgi.support.servlet.OSGiVaadinServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class OSGiVaadinServlet extends com.vaadin.flow.server.VaadinServletThe Vaadin servlet to use in OSGi.Extend this servlet to use Vaadin in OSGi in case
VaadinServletdoesn't work out of the box. That may happen in OSGi HTTP Whiteboard specification has some limitations regarding toServletContextListenersupport. There is no need to useOSGiVaadinServletat all ifServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)is called regardless of bundles deployment order and filtering based on "osgi.http.whiteboard.context.select" property is properly working.- Since:
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OSGiVaadinServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidinit(javax.servlet.ServletConfig servletConfig)-
Methods inherited from class com.vaadin.flow.server.VaadinServlet
createDeploymentConfiguration, createDeploymentConfiguration, createServletService, createServletService, createStaticFileHandler, createVaadinRequest, getCurrent, getFrontendMapping, getLastPathParameter, getService, getServletConfig, handleContextOrServletRootWithoutSlash, serveStaticOrWebJarRequest, service, 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
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin classcom.vaadin.flow.server.VaadinServlet
-
-