Package io.jmix.ui.sys.vaadin
Class JmixVaadinServletService
java.lang.Object
com.vaadin.server.VaadinService
com.vaadin.server.VaadinServletService
com.vaadin.spring.server.SpringVaadinServletService
io.jmix.ui.sys.vaadin.JmixVaadinServletService
- All Implemented Interfaces:
com.vaadin.server.communication.AtmospherePushConnection.UidlWriterFactory
,Serializable
public class JmixVaadinServletService
extends com.vaadin.spring.server.SpringVaadinServletService
implements com.vaadin.server.communication.AtmospherePushConnection.UidlWriterFactory
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Add support forJmixFileUpload
component with XHR upload mechanism.protected static class
protected static class
Add ability to redirect to base application URL if we have unparsable path tailprotected static class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected org.springframework.core.env.Environment
protected Messages
protected boolean
protected WebJarResourceResolver
protected String
protected ThemeVariantsProvider
protected UiProperties
protected UiThemeProperties
Fields inherited from class com.vaadin.server.VaadinService
URL_PARAMETER_CLOSE_APPLICATION, URL_PARAMETER_RESTART_APPLICATION
-
Constructor Summary
ConstructorDescriptionJmixVaadinServletService
(com.vaadin.server.VaadinServlet servlet, com.vaadin.server.DeploymentConfiguration deploymentConfiguration, String serviceUrl, org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<com.vaadin.server.RequestHandler>
com.vaadin.server.communication.UidlWriter
generateConnectorId
(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector) protected String
generateTestConnectorId
(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector) getConfiguredTheme
(com.vaadin.server.VaadinRequest request) protected String
protected String
toLongNumberString
(String data) Methods inherited from class com.vaadin.spring.server.SpringVaadinServletService
getServiceInitListeners, getWebApplicationContext
Methods inherited from class com.vaadin.server.VaadinServletService
getApplicationUrl, getBaseDirectory, getCancelingRelativePath, getConfiguredWidgetset, getContextRootRelativePath, getCurrentResponse, getCurrentServletRequest, getMainDivId, getMimeType, getServiceName, getServlet, getStaticFileLocation, getThemeResourceAsStream, isStandalone, requestCanCreateSession
Methods inherited from class com.vaadin.server.VaadinService
accessSession, addServiceDestroyListener, addSessionDestroyListener, addSessionInitListener, cleanupSession, closeSession, createCriticalNotificationJSON, createVaadinSession, criticalNotification, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, getClassLoader, getCurrent, getCurrentRequest, getDependencyFilters, getDeploymentConfiguration, getExistingSession, getLockAttributeName, getRequestHandlers, getSessionAttributeName, getSessionLock, getSystemMessages, getSystemMessagesProvider, handleRequest, handleSessionExpired, init, initConnectorIdGenerator, initDependencyFilters, isAtmosphereAvailable, isCsrfTokenValid, isOtherSessionLocked, isUIActive, loadSession, lockSession, preserveUIOnRefresh, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeServiceDestroyListener, removeSession, removeSessionDestroyListener, removeSessionInitListener, requestEnd, requestStart, runPendingAccessTasks, setClassLoader, setCurrent, setCurrentInstances, setDefaultClassLoader, setSessionLock, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse
-
Field Details
-
serviceUrl
-
uiProperties
-
uiThemeProperties
-
performanceTestMode
protected boolean performanceTestMode -
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
messages
-
resolver
-
environment
protected org.springframework.core.env.Environment environment -
themeVariantsProvider
-
-
Constructor Details
-
JmixVaadinServletService
public JmixVaadinServletService(com.vaadin.server.VaadinServlet servlet, com.vaadin.server.DeploymentConfiguration deploymentConfiguration, String serviceUrl, org.springframework.context.ApplicationContext applicationContext) throws com.vaadin.server.ServiceException - Throws:
com.vaadin.server.ServiceException
-
-
Method Details
-
getConfiguredTheme
- Overrides:
getConfiguredTheme
in classcom.vaadin.server.VaadinServletService
-
createRequestHandlers
protected List<com.vaadin.server.RequestHandler> createRequestHandlers() throws com.vaadin.server.ServiceException- Overrides:
createRequestHandlers
in classcom.vaadin.spring.server.SpringVaadinServletService
- Throws:
com.vaadin.server.ServiceException
-
createUidlWriter
public com.vaadin.server.communication.UidlWriter createUidlWriter()- Specified by:
createUidlWriter
in interfacecom.vaadin.server.communication.AtmospherePushConnection.UidlWriterFactory
-
getThemeVariants
-
findAndEscapeThemeVariants
-
generateConnectorId
public String generateConnectorId(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector) - Overrides:
generateConnectorId
in classcom.vaadin.server.VaadinService
-
generateTestConnectorId
protected String generateTestConnectorId(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector) -
toLongNumberString
-