Package com.vaadin.mpr.core
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.VaadinServletServiceLegacy VaadinServletService that does the bridge between legacy sessions and Flow sessions, in order to make session locks work across platforms.- See Also:
- Serialized Form
-
-
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.VaadinSessioncreateVaadinSession(com.vaadin.server.VaadinRequest request)static StringgetFrameworkVersion()StringgetMprVersion()StringgetServiceName()protected booleanisAtmosphereAvailable()voidrequestEnd(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.ServiceExceptionMprServletService constuctor.- Parameters:
servlet- Legacy servlet instancedeploymentConfiguration- 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:
getServiceNamein classcom.vaadin.server.VaadinServletService
-
accessSession
public Future<Void> accessSession(com.vaadin.server.VaadinSession session, Runnable runnable)
- Overrides:
accessSessionin classcom.vaadin.server.VaadinService
-
createRequestHandlers
protected List<com.vaadin.server.RequestHandler> createRequestHandlers() throws com.vaadin.server.ServiceException
- Overrides:
createRequestHandlersin classcom.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:
createVaadinSessionin classcom.vaadin.server.VaadinService- Throws:
com.vaadin.server.ServiceException
-
isAtmosphereAvailable
protected boolean isAtmosphereAvailable()
- Overrides:
isAtmosphereAvailablein classcom.vaadin.server.VaadinService
-
requestEnd
public void requestEnd(com.vaadin.server.VaadinRequest request, com.vaadin.server.VaadinResponse response, com.vaadin.server.VaadinSession session)- Overrides:
requestEndin classcom.vaadin.server.VaadinService
-
-