Package org.ligoj.boot.web
Class Application
java.lang.Object
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
org.ligoj.boot.web.Application
- All Implemented Interfaces:
org.springframework.web.WebApplicationInitializer
@SpringBootApplication
@ImportResource("classpath:/META-INF/spring/application.xml")
@EnableAutoConfiguration
public class Application
extends org.springframework.boot.web.servlet.support.SpringBootServletInitializer
Application entry point.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected static org.springframework.context.ConfigurableApplicationContextThe last loaded context.Fields inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet>Configure API proxy servlet.org.springframework.boot.web.servlet.FilterRegistrationBean<CacheBustingFilter>Configure cache filter.org.springframework.boot.web.servlet.FilterRegistrationBean<CaptchaFilter>Configure CAPTCHA filter.org.springframework.boot.web.servlet.ServletRegistrationBean<CaptchaServlet>Configure captcha servlet.org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.CharacterEncodingFilter>Configure charset filter.protected org.springframework.boot.builder.SpringApplicationBuilderconfigure(org.springframework.boot.builder.SpringApplicationBuilder application)org.springframework.boot.web.server.ErrorPageRegistrarConfigure error mapper.protected StringFix the system environment from "auto" to the guess value.org.springframework.boot.web.servlet.FilterRegistrationBean<HtmlProxyFilter>Configure html proxy filter.org.springframework.security.web.session.HttpSessionEventPublisherConfigure session manager.static voidRequire main either invoked from IDE, either from the CLIorg.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet>Configure management servlet.org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet>Configure plugin proxy servlet.org.springframework.web.context.request.RequestContextListenerConfigure request context listener.org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.DelegatingFilterProxy>Configure security filter.Methods inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
createRootApplicationContext, createSpringApplicationBuilder, deregisterJdbcDrivers, onStartup, run, setRegisterErrorPageFilter
-
Field Details
-
environmentCode
-
lastContext
protected static org.springframework.context.ConfigurableApplicationContext lastContextThe last loaded context.
-
-
Constructor Details
-
Application
public Application()
-
-
Method Details
-
configure
protected org.springframework.boot.builder.SpringApplicationBuilder configure(org.springframework.boot.builder.SpringApplicationBuilder application)- Overrides:
configurein classorg.springframework.boot.web.servlet.support.SpringBootServletInitializer
-
main
Require main either invoked from IDE, either from the CLI- Parameters:
args- Application arguments.
-
managementServlet
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet> managementServlet()Configure management servlet.- Returns:
- management servlet configuration.
-
apiProxyServlet
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet> apiProxyServlet()Configure API proxy servlet.- Returns:
- API proxy servlet configuration.
-
pluginProxyServlet
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet> pluginProxyServlet()Configure plugin proxy servlet.- Returns:
- plugin servlet configuration.
-
captchaServlet
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<CaptchaServlet> captchaServlet()Configure captcha servlet.- Returns:
- captcha configuration.
-
securityFilterChainRegistration
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.DelegatingFilterProxy> securityFilterChainRegistration()Configure security filter.- Returns:
- security filter configuration.
-
characterEncodingFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.CharacterEncodingFilter> characterEncodingFilter()Configure charset filter.- Returns:
- charset filter configuration.
-
htmlProxyFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<HtmlProxyFilter> htmlProxyFilter()Configure html proxy filter.- Returns:
- html proxy filter configuration.
-
cacheFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<CacheBustingFilter> cacheFilter()Configure cache filter.- Returns:
- cache filter configuration.
-
captchaFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<CaptchaFilter> captchaFilter()Configure CAPTCHA filter.- Returns:
- CAPTCHA filter configuration.
-
getEnvironment
Fix the system environment from "auto" to the guess value.- Returns:
- The computed web environment.
-
requestContextListener
@Bean public org.springframework.web.context.request.RequestContextListener requestContextListener()Configure request context listener.- Returns:
- request context listener configuration.
-
httpSessionEventPublisher
@Bean public org.springframework.security.web.session.HttpSessionEventPublisher httpSessionEventPublisher()Configure session manager.- Returns:
- session manager configuration.
-
containerCustomizer
@Bean public org.springframework.boot.web.server.ErrorPageRegistrar containerCustomizer()Configure error mapper.- Returns:
- error mapper configuration.
-