Package com.vaadin.flow.spring
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 VaadinServletService
Spring application context aware Vaadin servlet service implementation.- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.flow.server.VaadinService
ATMOSPHERE_MISSING_ERROR, CANNOT_ACQUIRE_CLASSLOADER_SEVERE, INVALID_ATMOSPHERE_VERSION_WARNING
-
-
Constructor Summary
Constructors Constructor Description SpringVaadinServletService(VaadinServlet servlet, DeploymentConfiguration deploymentConfiguration, org.springframework.context.ApplicationContext context)Creates an instance connected to the given servlet and using the given configuration with provided applicationcontext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VaadinSessioncreateVaadinSession(VaadinRequest request)URLgetStaticResource(String path)voidinit()protected Optional<Instantiator>loadInstantiators()-
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, createInstantiator, createSessionExpiredJSON, createUINotFoundJSON, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, fireUIInitListeners, getBootstrapInitialPredicate, getBootstrapUrlPredicate, getClassLoader, getContext, getCsrfTokenAttributeName, getCurrent, getCurrentRequest, getDependencyFilters, getDeploymentConfiguration, getExistingSession, getInstantiator, getRequestHandlers, getRouter, getSessionAttributeName, getSessionLock, getSystemMessages, getSystemMessagesProvider, handleRequest, handleSessionExpired, isAtmosphereAvailable, isCsrfTokenValid, isOtherSessionLocked, isResourceAvailable, isUIActive, loadSession, lockSession, modifyBootstrapPage, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse
-
-
-
-
Constructor Detail
-
SpringVaadinServletService
public SpringVaadinServletService(VaadinServlet servlet, DeploymentConfiguration deploymentConfiguration, org.springframework.context.ApplicationContext context)
Creates an instance connected to the given servlet and using the given configuration with provided applicationcontext.- Parameters:
servlet- the servlet which receives requestsdeploymentConfiguration- the configuration to usecontext- the Spring application context
-
-
Method Detail
-
loadInstantiators
protected Optional<Instantiator> loadInstantiators() throws ServiceException
- Overrides:
loadInstantiatorsin classVaadinService- Throws:
ServiceException
-
init
public void init() throws ServiceException- Overrides:
initin classVaadinServletService- Throws:
ServiceException
-
createVaadinSession
protected VaadinSession createVaadinSession(VaadinRequest request)
- Overrides:
createVaadinSessionin classVaadinService
-
getStaticResource
public URL getStaticResource(String path)
- Overrides:
getStaticResourcein classVaadinServletService
-
-