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
Nested ClassesModifier and TypeClassDescriptionprotected static classAdd support forJmixFileUploadcomponent with XHR upload mechanism.protected static classprotected static classAdd ability to redirect to base application URL if we have unparsable path tailprotected static classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected org.springframework.core.env.Environmentprotected Messagesprotected booleanprotected WebJarResourceResolverprotected Stringprotected ThemeVariantsProviderprotected UiPropertiesprotected UiThemePropertiesFields inherited from class com.vaadin.server.VaadinService
URL_PARAMETER_CLOSE_APPLICATION, URL_PARAMETER_RESTART_APPLICATION -
Constructor Summary
ConstructorsConstructorDescriptionJmixVaadinServletService(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.UidlWritergenerateConnectorId(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector) protected StringgenerateTestConnectorId(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector) getConfiguredTheme(com.vaadin.server.VaadinRequest request) protected Stringprotected StringtoLongNumberString(String data) Methods inherited from class com.vaadin.spring.server.SpringVaadinServletService
getServiceInitListeners, getWebApplicationContextMethods inherited from class com.vaadin.server.VaadinServletService
getApplicationUrl, getBaseDirectory, getCancelingRelativePath, getConfiguredWidgetset, getContextRootRelativePath, getCurrentResponse, getCurrentServletRequest, getMainDivId, getMimeType, getServiceName, getServlet, getStaticFileLocation, getThemeResourceAsStream, isStandalone, requestCanCreateSessionMethods 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:
getConfiguredThemein classcom.vaadin.server.VaadinServletService
-
createRequestHandlers
protected List<com.vaadin.server.RequestHandler> createRequestHandlers() throws com.vaadin.server.ServiceException- Overrides:
createRequestHandlersin classcom.vaadin.spring.server.SpringVaadinServletService- Throws:
com.vaadin.server.ServiceException
-
createUidlWriter
public com.vaadin.server.communication.UidlWriter createUidlWriter()- Specified by:
createUidlWriterin interfacecom.vaadin.server.communication.AtmospherePushConnection.UidlWriterFactory
-
getThemeVariants
-
findAndEscapeThemeVariants
-
generateConnectorId
public String generateConnectorId(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector) - Overrides:
generateConnectorIdin classcom.vaadin.server.VaadinService
-
generateTestConnectorId
protected String generateTestConnectorId(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector) -
toLongNumberString
-