Class RewriteAutoConfiguration

java.lang.Object
org.joinfaces.autoconfigure.rewrite.RewriteAutoConfiguration

@AutoConfiguration(after=org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class) @EnableConfigurationProperties({RewriteProperties.class,RewriteFilterProperties.class}) @ConditionalOnClass(org.ocpsoft.rewrite.servlet.RewriteFilter.class) @ConditionalOnWebApplication(type=SERVLET) public class RewriteAutoConfiguration extends Object
Spring Boot Auto Configuration of Rewrite.
  • Constructor Details

    • RewriteAutoConfiguration

      public RewriteAutoConfiguration()
  • Method Details

    • rewriteWebFragmentRegistrationBean

      @Bean public WebFragmentRegistrationBean rewriteWebFragmentRegistrationBean()
      This WebFragmentRegistrationBean is equivalent to the META-INF/web-fragment.xml of the rewrite-servlet.jar.
      Returns:
      rewriteWebFragmentRegistrationBean
    • rewriteFilterRegistrationBean

      @Bean @ConditionalOnMissingFilterBean @ConditionalOnNotWarDeployment public org.springframework.boot.web.servlet.FilterRegistrationBean<org.ocpsoft.rewrite.servlet.RewriteFilter> rewriteFilterRegistrationBean(RewriteFilterProperties rewriteFilterProperties)
    • rewriteExpressionLanguageProvider

      @Bean public org.ocpsoft.rewrite.spring.SpringExpressionLanguageProvider rewriteExpressionLanguageProvider()
    • rewriteAnnotationConfigProvider

      @Bean @ConfigurationProperties("joinfaces.rewrite.annotation-config-provider") public SpringBootAnnotationConfigProvider rewriteAnnotationConfigProvider()
      This SpringBootAnnotationConfigProvider adds a HttpConfigurationProvider which scans for Rewrite annotations within the classpath.
      Returns:
      rewrite annotation scanner