Package com.vaadin.mpr.core
Class AbstractMprServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.vaadin.server.VaadinServlet
com.vaadin.mpr.core.AbstractMprServlet
- All Implemented Interfaces:
com.vaadin.server.Constants,jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public abstract class AbstractMprServlet
extends com.vaadin.server.VaadinServlet
Base legacy VaadinServlet that creates a
MprServletService.
This servlet needs to be initialized before handling any Flow requests, so
VaadinServlet.getCurrent() and VaadinService.getCurrent() can
work when called from Flow.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.server.VaadinServlet
com.vaadin.server.VaadinServlet.RequestType -
Field Summary
FieldsFields inherited from interface com.vaadin.server.Constants
ATMOSPHERE_MISSING_ERROR, CANNOT_ACQUIRE_CLASSLOADER_SEVERE, DEFAULT_BUFFER_SIZE, DEFAULT_THEME_CACHETIME, DEFAULT_THEME_NAME, DEFAULT_WIDGETSET, ERROR_NO_UI_FOUND, INVALID_ATMOSPHERE_VERSION_WARNING, INVALID_SECURITY_KEY_MSG, MAX_BUFFER_SIZE, NOT_PRODUCTION_MODE_INFO, PARAMETER_VAADIN_RESOURCES, PARAMETER_WIDGETSET, PORTAL_PARAMETER_VAADIN_RESOURCE_PATH, PORTAL_PARAMETER_VAADIN_THEME, PORTAL_PARAMETER_VAADIN_WIDGETSET, PORTLET_CONTEXT, PUSH_NOT_SUPPORTED_ERROR, REQUIRED_ATMOSPHERE_RUNTIME_JAKARTA_VERSION, REQUIRED_ATMOSPHERE_RUNTIME_VERSION, SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS, SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION, SERVLET_PARAMETER_HEARTBEAT_INTERVAL, SERVLET_PARAMETER_LEGACY_DESIGN_PREFIX, SERVLET_PARAMETER_PRODUCTION_MODE, SERVLET_PARAMETER_PUSH_MODE, SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING, SERVLET_PARAMETER_RESOURCE_CACHE_TIME, SERVLET_PARAMETER_SENDURLSASPARAMETERS, SERVLET_PARAMETER_SYNC_ID_CHECK, SERVLET_PARAMETER_UI_PRIORITY, SERVLET_PARAMETER_UI_PROVIDER, THEME_DIR_PATH, URL_PARAMETER_THEME, WARNING_HEARTBEAT_INTERVAL_NOT_NUMERIC, WARNING_PUSH_MODE_NOT_RECOGNIZED, WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC, WARNING_XSRF_PROTECTION_DISABLED, WIDGETSET_DIR_PATH, WIDGETSET_MISMATCH_INFO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.server.DeploymentConfigurationcreateDeploymentConfiguration(Properties initParameters) protected com.vaadin.server.VaadinServletServicecreateServletService(com.vaadin.server.DeploymentConfiguration deploymentConfiguration) protected abstract LegacyCurrentInstanceRetrieves a helper object which calls Vaadin 7 or Vaadin 8CurrentInstanceclass accordingly.protected booleanisStaticResourceRequest(jakarta.servlet.http.HttpServletRequest request) protected booleanserveStaticResources(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected voidMethods inherited from class com.vaadin.server.VaadinServlet
allowServePrecompressedResource, createDeploymentConfiguration, createServletService, createVaadinRequest, criticalNotification, destroy, findResourceURL, getApplicationUrl, getCacheTime, getCurrent, getDefaultTheme, getLastPathParameter, getRequestType, getResourcePath, getService, getStaticFilePath, handleContextRootWithoutSlash, init, isAllowedVAADINResourceUrl, safeEscapeForHtml, serveStaticResourcesInVAADIN, service, stripSpecialChars, writeStaticResourceResponseMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
STATIC_PATH
- See Also:
-
-
Constructor Details
-
AbstractMprServlet
public AbstractMprServlet()
-
-
Method Details
-
servletInitialized
protected void servletInitialized() throws jakarta.servlet.ServletException- Overrides:
servletInitializedin classcom.vaadin.server.VaadinServlet- Throws:
jakarta.servlet.ServletException
-
getLegacyCurrentInstance
Retrieves a helper object which calls Vaadin 7 or Vaadin 8CurrentInstanceclass accordingly.- Returns:
- a non-null instance of
LegacyCurrentInstance.
-
createServletService
protected com.vaadin.server.VaadinServletService createServletService(com.vaadin.server.DeploymentConfiguration deploymentConfiguration) throws com.vaadin.server.ServiceException - Overrides:
createServletServicein classcom.vaadin.server.VaadinServlet- Throws:
com.vaadin.server.ServiceException
-
createDeploymentConfiguration
protected com.vaadin.server.DeploymentConfiguration createDeploymentConfiguration(Properties initParameters) - Overrides:
createDeploymentConfigurationin classcom.vaadin.server.VaadinServlet
-
isStaticResourceRequest
protected boolean isStaticResourceRequest(jakarta.servlet.http.HttpServletRequest request) - Overrides:
isStaticResourceRequestin classcom.vaadin.server.VaadinServlet
-
serveStaticResources
protected boolean serveStaticResources(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Overrides:
serveStaticResourcesin classcom.vaadin.server.VaadinServlet- Throws:
IOExceptionjakarta.servlet.ServletException
-