Class SpringVaadinServletService

java.lang.Object
com.vaadin.flow.server.VaadinService
com.vaadin.flow.server.VaadinServletService
com.vaadin.flow.spring.SpringVaadinServletService
All Implemented Interfaces:
Serializable

public class SpringVaadinServletService extends com.vaadin.flow.server.VaadinServletService
Spring application context aware Vaadin servlet service implementation.
Author:
Vaadin Ltd
See Also:
  • Field Summary

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

    ATMOSPHERE_MISSING_ERROR, INVALID_ATMOSPHERE_VERSION_WARNING
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpringVaadinServletService(com.vaadin.flow.server.VaadinServlet servlet, com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration, org.springframework.context.ApplicationContext context)
    Creates an instance connected to the given servlet and using the given configuration with provided application context.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Executor
     
     
     
    void
     
    protected Optional<com.vaadin.flow.di.Instantiator>
     

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

    constructVaadinContext, createRequestHandlers, getContextRootRelativePath, getCurrentResponse, getCurrentServletRequest, getMainDivId, getMimeType, getPwaRegistry, getResource, getResourceAsStream, getResourceInServletContext, getRouteRegistry, getServiceName, getServlet, requestCanCreateSession, resolveResource, setDefaultClassLoader

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

    accessSession, addServiceDestroyListener, addSessionDestroyListener, addSessionInitListener, addUIInitListener, closeSession, createCriticalNotificationJSON, createCriticalNotificationJSON, createDefaultObjectMapper, createInstantiator, createSessionExpiredJSON, createUINotFoundJSON, createVaadinRequestInterceptors, createVaadinSession, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, fireUIInitListeners, getBootstrapInitialPredicate, getBootstrapUrlPredicate, getClassLoader, getContext, getCsrfTokenAttributeName, getCurrent, getCurrentRequest, getDependencyFilters, getDeploymentConfiguration, getExistingSession, getInstantiator, getRequestHandlers, getRouter, getSessionAttributeName, getSessionLock, getSystemMessages, getSystemMessagesProvider, getVaadinRequestInterceptors, handleRequest, handleSessionExpired, isAtmosphereAvailable, isCsrfTokenValid, isOtherSessionLocked, isResourceAvailable, isUIActive, loadSession, lockSession, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse

    Methods inherited from class java.lang.Object

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

    • SpringVaadinServletService

      public SpringVaadinServletService(com.vaadin.flow.server.VaadinServlet servlet, com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration, org.springframework.context.ApplicationContext context)
      Creates an instance connected to the given servlet and using the given configuration with provided application context.
      Parameters:
      servlet - the servlet which receives requests
      deploymentConfiguration - the configuration to use
      context - the Spring application context
  • Method Details

    • loadInstantiators

      protected Optional<com.vaadin.flow.di.Instantiator> loadInstantiators() throws com.vaadin.flow.server.ServiceException
      Overrides:
      loadInstantiators in class com.vaadin.flow.server.VaadinService
      Throws:
      com.vaadin.flow.server.ServiceException
    • createDefaultExecutor

      protected Executor createDefaultExecutor()
      Overrides:
      createDefaultExecutor in class com.vaadin.flow.server.VaadinService
    • getExecutor

      public Executor getExecutor()
      Overrides:
      getExecutor in class com.vaadin.flow.server.VaadinService
    • init

      public void init() throws com.vaadin.flow.server.ServiceException
      Overrides:
      init in class com.vaadin.flow.server.VaadinService
      Throws:
      com.vaadin.flow.server.ServiceException
    • getStaticResource

      public URL getStaticResource(String path)
      Overrides:
      getStaticResource in class com.vaadin.flow.server.VaadinServletService