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 Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Add support for JmixFileUpload component with XHR upload mechanism.
    protected static class 
     
    protected static class 
    Add ability to redirect to base application URL if we have unparsable path tail
    protected static class 
     
    protected static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.ApplicationContext
     
    protected org.springframework.core.env.Environment
     
    protected Messages
     
    protected boolean
     
     
    protected String
     
     
    protected UiProperties
     
     

    Fields inherited from class com.vaadin.server.VaadinService

    URL_PARAMETER_CLOSE_APPLICATION, URL_PARAMETER_RESTART_APPLICATION
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmixVaadinServletService(com.vaadin.server.VaadinServlet servlet, com.vaadin.server.DeploymentConfiguration deploymentConfiguration, String serviceUrl, org.springframework.context.ApplicationContext applicationContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serviceUrl

      protected String serviceUrl
    • uiProperties

      protected UiProperties uiProperties
    • uiThemeProperties

      protected UiThemeProperties uiThemeProperties
    • performanceTestMode

      protected boolean performanceTestMode
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • messages

      protected Messages messages
    • resolver

      protected WebJarResourceResolver resolver
    • environment

      protected org.springframework.core.env.Environment environment
    • themeVariantsProvider

      protected ThemeVariantsProvider 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

      public String getConfiguredTheme(com.vaadin.server.VaadinRequest request)
      Overrides:
      getConfiguredTheme in class com.vaadin.server.VaadinServletService
    • createRequestHandlers

      protected List<com.vaadin.server.RequestHandler> createRequestHandlers() throws com.vaadin.server.ServiceException
      Overrides:
      createRequestHandlers in class com.vaadin.spring.server.SpringVaadinServletService
      Throws:
      com.vaadin.server.ServiceException
    • createUidlWriter

      public com.vaadin.server.communication.UidlWriter createUidlWriter()
      Specified by:
      createUidlWriter in interface com.vaadin.server.communication.AtmospherePushConnection.UidlWriterFactory
    • getThemeVariants

      protected String getThemeVariants()
    • findAndEscapeThemeVariants

      public List<String> findAndEscapeThemeVariants()
    • generateConnectorId

      public String generateConnectorId(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector)
      Overrides:
      generateConnectorId in class com.vaadin.server.VaadinService
    • generateTestConnectorId

      protected String generateTestConnectorId(com.vaadin.server.VaadinSession session, com.vaadin.server.ClientConnector connector)
    • toLongNumberString

      protected String toLongNumberString(String data)