@Configuration public class VaadinServletConfiguration extends Object
SpringAwareVaadinServlet.
If you want to customize the servlet, extend it and make it available as a Spring bean.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SERVLET_URL_MAPPING |
static String |
SERVLET_CONFIGURATION_PARAMETER_PREFIX
Prefix to be used for all Spring environment properties that configure the Vaadin servlet.
|
static String |
SERVLET_URL_MAPPING_PARAMETER_NAME
Name of the Spring environment property that contains the URL mapping of the Vaadin servlet.
|
| Constructor and Description |
|---|
VaadinServletConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected javax.servlet.http.HttpServlet |
createServlet() |
protected org.springframework.boot.context.embedded.ServletRegistrationBean |
createServletRegistrationBean() |
protected org.slf4j.Logger |
getLogger() |
protected Class<? extends javax.servlet.http.HttpServlet> |
getServletClass() |
protected String |
getServletConfigurationParameterPrefix() |
protected String |
getUrlMapping() |
public static final String SERVLET_CONFIGURATION_PARAMETER_PREFIX
[prefix][initParameter] where [prefix]
is "vaadin.servlet.params." and initParameter is the name of one of the parameters defined in VaadinServletConfiguration.
For example, to change the production mode of the servlet, a property named "vaadin.servlet.params."productionMode would
be used.
Environment,
Constant Field Valuespublic static final String SERVLET_URL_MAPPING_PARAMETER_NAME
/*.public static final String DEFAULT_SERVLET_URL_MAPPING
protected String getServletConfigurationParameterPrefix()
protected Class<? extends javax.servlet.http.HttpServlet> getServletClass()
protected org.slf4j.Logger getLogger()
protected String getUrlMapping()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionprotected javax.servlet.http.HttpServlet createServlet()
protected org.springframework.boot.context.embedded.ServletRegistrationBean createServletRegistrationBean()
Copyright © 2015. All rights reserved.