Class MprServletService

java.lang.Object
com.vaadin.server.VaadinService
com.vaadin.server.VaadinServletService
com.vaadin.mpr.core.MprServletService
All Implemented Interfaces:
Serializable

public class MprServletService extends com.vaadin.server.VaadinServletService
Legacy VaadinServletService that does the bridge between legacy sessions and Flow sessions, in order to make session locks work across platforms.
See Also:
  • Field Summary

    Fields inherited from class com.vaadin.server.VaadinService

    URL_PARAMETER_CLOSE_APPLICATION, URL_PARAMETER_RESTART_APPLICATION
  • Constructor Summary

    Constructors
    Constructor
    Description
    MprServletService(com.vaadin.server.VaadinServlet servlet, com.vaadin.server.DeploymentConfiguration deploymentConfiguration)
    MprServletService constuctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    accessSession(com.vaadin.server.VaadinSession session, Runnable runnable)
     
    protected List<com.vaadin.server.RequestHandler>
     
    protected com.vaadin.server.VaadinSession
    createVaadinSession(com.vaadin.server.VaadinRequest request)
     
    static String
     
     
     
    protected boolean
     
    void
    requestEnd(com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response, com.vaadin.server.VaadinSession session)
     

    Methods inherited from class com.vaadin.server.VaadinServletService

    getApplicationUrl, getBaseDirectory, getCancelingRelativePath, getConfiguredTheme, getConfiguredWidgetset, getContextRootRelativePath, getCurrentResponse, getCurrentServletRequest, getMainDivId, getMimeType, getServlet, getStaticFileLocation, getThemeResourceAsStream, isStandalone, requestCanCreateSession

    Methods inherited from class com.vaadin.server.VaadinService

    addServiceDestroyListener, addSessionDestroyListener, addSessionInitListener, cleanupSession, closeSession, createCriticalNotificationJSON, criticalNotification, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, generateConnectorId, getClassLoader, getCurrent, getCurrentRequest, getDependencyFilters, getDeploymentConfiguration, getExistingSession, getLockAttributeName, getRequestHandlers, getServiceInitListeners, getSessionAttributeName, getSessionLock, getSystemMessages, getSystemMessagesProvider, handleRequest, handleSessionExpired, init, initConnectorIdGenerator, initDependencyFilters, isCsrfTokenValid, isOtherSessionLocked, isUIActive, loadSession, lockSession, preserveUIOnRefresh, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeServiceDestroyListener, removeSession, removeSessionDestroyListener, removeSessionInitListener, requestStart, runPendingAccessTasks, setClassLoader, setCurrent, setCurrentInstances, setDefaultClassLoader, setSessionLock, 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

    • MprServletService

      public MprServletService(com.vaadin.server.VaadinServlet servlet, com.vaadin.server.DeploymentConfiguration deploymentConfiguration) throws com.vaadin.server.ServiceException
      MprServletService constuctor.
      Parameters:
      servlet - Legacy servlet instance
      deploymentConfiguration - Legacy deployment configuration instance
      Throws:
      com.vaadin.server.ServiceException - Service exception
  • Method Details

    • getMprVersion

      public String getMprVersion()
    • getFrameworkVersion

      public static String getFrameworkVersion()
    • getServiceName

      public String getServiceName()
      Overrides:
      getServiceName in class com.vaadin.server.VaadinServletService
    • accessSession

      public Future<Void> accessSession(com.vaadin.server.VaadinSession session, Runnable runnable)
      Overrides:
      accessSession in class com.vaadin.server.VaadinService
    • createRequestHandlers

      protected List<com.vaadin.server.RequestHandler> createRequestHandlers() throws com.vaadin.server.ServiceException
      Overrides:
      createRequestHandlers in class com.vaadin.server.VaadinServletService
      Throws:
      com.vaadin.server.ServiceException
    • createVaadinSession

      protected com.vaadin.server.VaadinSession createVaadinSession(com.vaadin.server.VaadinRequest request) throws com.vaadin.server.ServiceException
      Overrides:
      createVaadinSession in class com.vaadin.server.VaadinService
      Throws:
      com.vaadin.server.ServiceException
    • isAtmosphereAvailable

      protected boolean isAtmosphereAvailable()
      Overrides:
      isAtmosphereAvailable in class com.vaadin.server.VaadinService
    • requestEnd

      public void requestEnd(com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response, com.vaadin.server.VaadinSession session)
      Overrides:
      requestEnd in class com.vaadin.server.VaadinService