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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionThisSpringBootAnnotationConfigProvider
adds aHttpConfigurationProvider
which scans for Rewrite annotations within the classpath.org.ocpsoft.rewrite.spring.SpringExpressionLanguageProvider
FilterRegistrationBean<org.ocpsoft.rewrite.servlet.RewriteFilter>
rewriteFilterRegistrationBean
(RewriteFilterProperties rewriteFilterProperties) ThisWebFragmentRegistrationBean
is equivalent to theMETA-INF/web-fragment.xml
of therewrite-servlet.jar
.
-
Constructor Details
-
RewriteAutoConfiguration
public RewriteAutoConfiguration()
-
-
Method Details
-
rewriteWebFragmentRegistrationBean
ThisWebFragmentRegistrationBean
is equivalent to theMETA-INF/web-fragment.xml
of therewrite-servlet.jar
.- Returns:
- rewriteWebFragmentRegistrationBean
-
rewriteFilterRegistrationBean
@Bean @ConditionalOnMissingFilterBean public 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()ThisSpringBootAnnotationConfigProvider
adds aHttpConfigurationProvider
which scans for Rewrite annotations within the classpath.- Returns:
- rewrite annotation scanner
-