Class MockQuarkusServletService

java.lang.Object
com.vaadin.flow.server.VaadinService
com.vaadin.flow.server.VaadinServletService
com.vaadin.quarkus.QuarkusVaadinServletService
com.vaadin.browserless.quarkus.mocks.MockQuarkusServletService
All Implemented Interfaces:
Serializable

public class MockQuarkusServletService extends com.vaadin.quarkus.QuarkusVaadinServletService
A mocking service that performs three very important tasks: The class is intentionally opened, to be extensible in user's library.
See Also:
  • Field Summary

    Fields inherited from class com.vaadin.flow.server.VaadinService

    ATMOSPHERE_MISSING_ERROR, INVALID_ATMOSPHERE_VERSION_WARNING
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockQuarkusServletService(com.vaadin.quarkus.QuarkusVaadinServlet servlet, com.vaadin.flow.function.DeploymentConfiguration configuration, jakarta.enterprise.inject.spi.BeanManager beanManager, com.vaadin.browserless.internal.UIFactory uiFactory)
    Creates a new QuarkusVaadinServletService for testing.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.vaadin.flow.server.VaadinSession
    createVaadinSession(com.vaadin.flow.server.VaadinRequest request)
     
    com.vaadin.flow.di.Instantiator
     
    getMainDivId(com.vaadin.flow.server.VaadinSession session, com.vaadin.flow.server.VaadinRequest request)
     
    protected boolean
     

    Methods inherited from class com.vaadin.quarkus.QuarkusVaadinServletService

    createDefaultExecutor, fireUIInitListeners, getServlet, init, loadInstantiators, lookup

    Methods inherited from class com.vaadin.flow.server.VaadinServletService

    constructVaadinContext, createRequestHandlers, getContextRootRelativePath, getCurrentResponse, getCurrentServletRequest, getMimeType, getPwaRegistry, getResource, getResourceAsStream, getResourceInServletContext, getRouteRegistry, getServiceName, getStaticResource, requestCanCreateSession, resolveResource, setDefaultClassLoader

    Methods inherited from class com.vaadin.flow.server.VaadinService

    accessSession, addServiceDestroyListener, addSessionDestroyListener, addSessionInitListener, addUIInitListener, closeSession, createCriticalNotificationJSON, createCriticalNotificationJSON, createDefaultObjectMapper, createInstantiator, createSessionExpiredJSON, createUINotFoundJSON, createVaadinRequestInterceptors, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, getBootstrapInitialPredicate, getBootstrapUrlPredicate, getClassLoader, getContext, getCsrfTokenAttributeName, getCurrent, getCurrentRequest, getDependencyFilters, getDeploymentConfiguration, getExecutor, getExistingSession, getRequestHandlers, getRouter, getSessionAttributeName, getSessionLock, getSystemMessages, getSystemMessagesProvider, getVaadinRequestInterceptors, handleRequest, handleSessionExpired, isCsrfTokenValid, isOtherSessionLocked, isResourceAvailable, isUIActive, loadSession, lockSession, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, 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
  • Constructor Details

    • MockQuarkusServletService

      public MockQuarkusServletService(com.vaadin.quarkus.QuarkusVaadinServlet servlet, com.vaadin.flow.function.DeploymentConfiguration configuration, jakarta.enterprise.inject.spi.BeanManager beanManager, com.vaadin.browserless.internal.UIFactory uiFactory)
      Creates a new QuarkusVaadinServletService for testing.
      Parameters:
      servlet - the Quarkus Vaadin servlet.
      configuration - the deployment configuration.
      beanManager - the CDI bean manager.
      uiFactory - the factory used to build Flow UIs.
  • Method Details

    • isAtmosphereAvailable

      protected boolean isAtmosphereAvailable()
      Overrides:
      isAtmosphereAvailable in class com.vaadin.flow.server.VaadinService
    • getMainDivId

      public String getMainDivId(com.vaadin.flow.server.VaadinSession session, com.vaadin.flow.server.VaadinRequest request)
      Overrides:
      getMainDivId in class com.vaadin.flow.server.VaadinServletService
    • createVaadinSession

      protected com.vaadin.flow.server.VaadinSession createVaadinSession(com.vaadin.flow.server.VaadinRequest request)
      Overrides:
      createVaadinSession in class com.vaadin.flow.server.VaadinService
    • getInstantiator

      public com.vaadin.flow.di.Instantiator getInstantiator()
      Overrides:
      getInstantiator in class com.vaadin.flow.server.VaadinService