Class 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

      Fields 
      Modifier and Type Field Description
      protected String environmentCode  
      protected static org.springframework.context.ConfigurableApplicationContext lastContext
      The last loaded context.
      • Fields inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      Application()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet> apiProxyServlet()  
      org.springframework.boot.web.servlet.FilterRegistrationBean<com.samaxes.filter.CacheFilter> cacheFilter()  
      org.springframework.boot.web.servlet.FilterRegistrationBean<CaptchaFilter> captchaFilter()  
      org.springframework.boot.web.servlet.ServletRegistrationBean<CaptchaServlet> captchaServlet()  
      org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.CharacterEncodingFilter> characterEncodingFilter()  
      protected org.springframework.boot.builder.SpringApplicationBuilder configure​(org.springframework.boot.builder.SpringApplicationBuilder application)  
      org.springframework.boot.web.server.ErrorPageRegistrar containerCustomizer()  
      org.springframework.boot.web.servlet.FilterRegistrationBean<org.eclipse.jetty.servlets.DoSFilter> doSFilter()  
      protected String getEnvironment()
      Fix the system environment from "auto" to the guess value.
      org.springframework.boot.web.servlet.FilterRegistrationBean<HtmlProxyFilter> htmlProxyFilter()  
      org.springframework.security.web.session.HttpSessionEventPublisher httpSessionEventPublisher()  
      static void main​(String[] args)
      Require main either invoked from IDE, either from the CLI
      org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet> managementServlet()  
      org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet> pluginProxyServlet()  
      org.springframework.web.context.request.RequestContextListener requestContextListener()  
      org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.DelegatingFilterProxy> securityFilterChainRegistration()  
      • Methods inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer

        createRootApplicationContext, createSpringApplicationBuilder, onStartup, run, setRegisterErrorPageFilter
    • Field Detail

      • environmentCode

        @Value("${app-env:auto}")
        protected String environmentCode
      • lastContext

        protected static org.springframework.context.ConfigurableApplicationContext lastContext
        The last loaded context.
    • Constructor Detail

      • Application

        public Application()
    • Method Detail

      • configure

        protected org.springframework.boot.builder.SpringApplicationBuilder configure​(org.springframework.boot.builder.SpringApplicationBuilder application)
        Overrides:
        configure in class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
      • main

        public static void main​(String[] args)
        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()
      • apiProxyServlet

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet> apiProxyServlet()
      • pluginProxyServlet

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<org.ligoj.bootstrap.http.proxy.BackendProxyServlet> pluginProxyServlet()
      • captchaServlet

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<CaptchaServlet> captchaServlet()
      • securityFilterChainRegistration

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.DelegatingFilterProxy> securityFilterChainRegistration()
      • characterEncodingFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<org.springframework.web.filter.CharacterEncodingFilter> characterEncodingFilter()
      • htmlProxyFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<HtmlProxyFilter> htmlProxyFilter()
      • cacheFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<com.samaxes.filter.CacheFilter> cacheFilter()
      • doSFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<org.eclipse.jetty.servlets.DoSFilter> doSFilter()
      • captchaFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<CaptchaFilter> captchaFilter()
      • getEnvironment

        protected String 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()
      • httpSessionEventPublisher

        @Bean
        public org.springframework.security.web.session.HttpSessionEventPublisher httpSessionEventPublisher()
      • containerCustomizer

        @Bean
        public org.springframework.boot.web.server.ErrorPageRegistrar containerCustomizer()