@ExtensionPoint public interface CustomWebApplicationInitializer
By implementing this interface you are able to add your custom servlets and servlet filters before and after the platform configured it. The calling order is the following:
Each custom servlet is included in the default platform Spring Security configuration. If you want to have your own security
configuration in place for your servlets, you need to implement your own WebSecurityConfigurerAdapter
with an
Order
less than the SecurityConfigurationConfigurer.CONFIGURATION_ORDER
.
This way your security configuration is taken before the default is used.
When multiple initializers are used you can order them with the help of the Order
annotation.
In addition you are also able to provide a collection of CustomApplicationContextInitializer
s to initialize
the application context.
The following servlet context paths are reserved by the platform and must not be used for your custom servlets:
/rest
/api
/p
/form
/case
Modifier and Type | Method and Description |
---|---|
Collection<CustomApplicationContextInitializer> |
getCustomApplicationContextInitializers()
Returns the
CustomApplicationContextInitializer s to use to initialize the application context. |
void |
postConfigureServletContext(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext rootApplicationContext)
Configure the
ServletContext after the platform configured it. |
void |
postConfigureServletFilters(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext rootApplicationContext)
Configure the
ServletContext after the platform configured the context and added all its servlet filters. |
void |
preConfigureServletContext(javax.servlet.ServletContext servletContext,
org.springframework.web.context.WebApplicationContext rootApplicationContext)
Configure the
ServletContext before the platform configures it. |
void preConfigureServletContext(javax.servlet.ServletContext servletContext, org.springframework.web.context.WebApplicationContext rootApplicationContext)
Configure the ServletContext
before the platform configures it.
servletContext
- the servlet contextrootApplicationContext
- the root application contextvoid postConfigureServletContext(javax.servlet.ServletContext servletContext, org.springframework.web.context.WebApplicationContext rootApplicationContext)
Configure the ServletContext
after the platform configured it.
servletContext
- the servlet contextrootApplicationContext
- the root application contextvoid postConfigureServletFilters(javax.servlet.ServletContext servletContext, org.springframework.web.context.WebApplicationContext rootApplicationContext)
Configure the ServletContext
after the platform configured the context and added all its servlet filters.
servletContext
- the servlet contextrootApplicationContext
- the root application contextCollection<CustomApplicationContextInitializer> getCustomApplicationContextInitializers()
Returns the CustomApplicationContextInitializer
s to use to initialize the application context. The
initializers can be ordered with the help of the Order
annotation.
CustomApplicationContextInitializer
s to use to initialize the application context.Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.