public class SpringServlet
extends com.vaadin.flow.server.VaadinServlet
This class is not intended to be used directly. It's instantiated automatically by the Spring add-on:
SpringBootAutoConfiguration.
VaadinMVCWebAppInitializer.
| Modifier and Type | Field and Description |
|---|---|
protected static List<String> |
PROPERTY_NAMES
Property names that are read from the application.properties file
|
| Constructor and Description |
|---|
SpringServlet(org.springframework.context.ApplicationContext context,
boolean rootMapping)
Creates a new Vaadin servlet instance with the application
context provided. |
| Modifier and Type | Method and Description |
|---|---|
protected com.vaadin.flow.function.DeploymentConfiguration |
createDeploymentConfiguration(Properties initParameters) |
protected com.vaadin.flow.server.VaadinServletService |
createServletService(com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
createDeploymentConfiguration, createServletService, createStaticFileHandler, createVaadinRequest, destroy, getCurrent, getLastPathParameter, getService, getServletConfig, handleContextOrServletRootWithoutSlash, init, serveStaticOrWebJarRequest, servletInitializeddoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic SpringServlet(org.springframework.context.ApplicationContext context,
boolean rootMapping)
context provided.
Use true as a value for forwardingEnforced parameter if
your servlet is mapped to the root ("/*"). In the case of root
mapping a RootMappedCondition is checked and
VaadinServletConfiguration is applied conditionally. This
configuration provide a ServletForwardingController so that other
Spring endpoints may co-exist with Vaadin application (it's required
since root mapping handles any request to the context). This is not
needed if you are using non-root mapping since are you free to use the
mapping which doesn't overlap with any endpoint mapping. In this case use
false for the forwardingEnforced parameter.
context - the Spring application contextrootMapping - the incoming HttpServletRequest is wrapped in
ForwardingRequestWrapper if true and push URL is
prefixed with
VaadinServletConfiguration.VAADIN_SERVLET_MAPPINGprotected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class com.vaadin.flow.server.VaadinServletjavax.servlet.ServletExceptionIOExceptionprotected com.vaadin.flow.server.VaadinServletService createServletService(com.vaadin.flow.function.DeploymentConfiguration deploymentConfiguration)
throws com.vaadin.flow.server.ServiceException
createServletService in class com.vaadin.flow.server.VaadinServletcom.vaadin.flow.server.ServiceExceptionprotected com.vaadin.flow.function.DeploymentConfiguration createDeploymentConfiguration(Properties initParameters)
createDeploymentConfiguration in class com.vaadin.flow.server.VaadinServletCopyright © 2021 Vaadin Ltd. All Rights Reserved.