Class TabbedModeVaadinServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.vaadin.flow.server.VaadinServlet
com.vaadin.flow.spring.SpringServlet
io.jmix.tabbedmode.sys.vaadin.TabbedModeVaadinServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class TabbedModeVaadinServlet extends com.vaadin.flow.spring.SpringServlet
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.springframework.context.ApplicationContext
     

    Fields inherited from class com.vaadin.flow.spring.SpringServlet

    PROPERTY_NAMES

    Fields inherited from class com.vaadin.flow.server.VaadinServlet

    INTERNAL_VAADIN_SERVLET_VITE_DEV_MODE_FRONTEND_PATH

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
    TabbedModeVaadinServlet(org.springframework.context.ApplicationContext context, boolean rootMapping)
    Creates a new Vaadin servlet instance with the application context provided.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.vaadin.flow.server.VaadinServletService
    createServletService(com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration)
     

    Methods inherited from class com.vaadin.flow.spring.SpringServlet

    createDeploymentConfiguration, service

    Methods inherited from class com.vaadin.flow.server.VaadinServlet

    createDeploymentConfiguration, createServletService, createStaticFileHandler, createVaadinRequest, destroy, getCurrent, getFrontendMapping, getLastPathParameter, getService, getServletConfig, handleContextOrServletRootWithoutSlash, init, serveStaticOrWebJarRequest, servletInitialized, whenFrontendMappingAvailable

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service

    Methods inherited from class jakarta.servlet.GenericServlet

    getInitParameter, getInitParameterNames, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • applicationContext

      protected final org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • TabbedModeVaadinServlet

      public TabbedModeVaadinServlet(org.springframework.context.ApplicationContext context, boolean rootMapping)
      Creates a new Vaadin servlet instance with the application context provided.

      Use true as a value for forwardingEnforced parameter if your servlet is mapped to the root ("/*"). In the case of root mapping a RootMappedCondition is checked and VaadinServletConfiguration is applied conditionally. This configuration provide a ServletForwardingController so that other Spring endpoints may co-exist with Vaadin application (it's required since root mapping handles any request to the context). This is not needed if you are using non-root mapping since are you free to use the mapping which doesn't overlap with any endpoint mapping. In this case use false for the forwardingEnforced parameter.

      Parameters:
      context - the Spring application context
      rootMapping - the incoming HttpServletRequest is wrapped in ForwardingRequestWrapper if true
  • Method Details

    • createServletService

      protected com.vaadin.flow.server.VaadinServletService createServletService(com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration) throws com.vaadin.flow.server.ServiceException
      Overrides:
      createServletService in class com.vaadin.flow.spring.SpringServlet
      Throws:
      com.vaadin.flow.server.ServiceException