Class RewriteAutoConfiguration


  • @Configuration
    @EnableConfigurationProperties(RewriteProperties.class)
    @ConditionalOnClass(org.ocpsoft.rewrite.servlet.RewriteFilter.class)
    @AutoConfigureAfter(org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class)
    @ConditionalOnWebApplication(type=SERVLET)
    public class RewriteAutoConfiguration
    extends java.lang.Object
    Spring Boot Auto Configuration of Rewrite.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ApplicationContextProvider applicationContextProvider()  
      org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory> rewriteWebServerFactoryCustomizer()
      This WebServerFactoryCustomizer adds a ServletContextInitializer to the embedded servlet-container which is equivalent to rewrite's own META-INF/web-fragment.xml.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RewriteAutoConfiguration

        public RewriteAutoConfiguration()
    • Method Detail

      • rewriteWebServerFactoryCustomizer

        @DependsOn("applicationContextProvider")
        @Bean
        public org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory> rewriteWebServerFactoryCustomizer()
        This WebServerFactoryCustomizer adds a ServletContextInitializer to the embedded servlet-container which is equivalent to rewrite's own META-INF/web-fragment.xml.
        Returns:
        rewrite web server factory customizer