Class 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:
    Serialized Form
    • 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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Future<Void> accessSession​(com.vaadin.server.VaadinSession session, Runnable runnable)  
      protected List<com.vaadin.server.RequestHandler> createRequestHandlers()  
      protected com.vaadin.server.VaadinSession createVaadinSession​(com.vaadin.server.VaadinRequest request)  
      static String getFrameworkVersion()  
      String getMprVersion()  
      String getServiceName()  
      protected boolean isAtmosphereAvailable()  
      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, getCurrentResponse, getCurrentServletRequest, getMainDivId, getMimeType, getServlet, getStaticFileLocation, getThemeResourceAsStream, isStandalone, requestCanCreateSession
      • Methods inherited from class com.vaadin.server.VaadinService

        addServiceDestroyListener, addSessionDestroyListener, addSessionInitListener, closeSession, createCriticalNotificationJSON, criticalNotification, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, getClassLoader, getCurrent, getCurrentRequest, getDeploymentConfiguration, getExistingSession, getLockAttributeName, getRequestHandlers, getSessionAttributeName, getSessionLock, getSystemMessages, getSystemMessagesProvider, handleRequest, handleSessionExpired, init, isCsrfTokenValid, isOtherSessionLocked, loadSession, lockSession, preserveUIOnRefresh, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeServiceDestroyListener, removeSession, removeSessionDestroyListener, removeSessionInitListener, requestStart, runPendingAccessTasks, setClassLoader, setCurrent, setCurrentInstances, setDefaultClassLoader, setSessionLock, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession
    • Constructor Detail

      • 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 Detail

      • 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