Java 类org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter 实例源码

项目:S3Mock    文件:S3MockApplication.java   
/**
 * @return An {@link OrderedHttpPutFormContentFilter} that suppresses the FormContent filtering.
 */
@Bean
public OrderedHttpPutFormContentFilter httpPutFormContentFilter() {
  return new OrderedHttpPutFormContentFilter() {
    @Override
    protected boolean shouldNotFilter(final HttpServletRequest request) throws ServletException {
      return true;
    }
  };
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfigurationTests.java   
@Test
public void httpPutFormContentFilterCanBeOverridden() {
    load(CustomHttpPutFormContentFilter.class);
    assertThat(this.context.getBeansOfType(OrderedHttpPutFormContentFilter.class))
            .hasSize(0);
    assertThat(this.context.getBeansOfType(HttpPutFormContentFilter.class))
            .hasSize(1);
}
项目:spring-boot-concourse    文件:WebMvcAutoConfigurationTests.java   
@Test
public void httpPutFormContentFilterCanBeOverridden() {
    load(CustomHttpPutFormContentFilter.class);
    assertThat(this.context.getBeansOfType(OrderedHttpPutFormContentFilter.class))
            .hasSize(0);
    assertThat(this.context.getBeansOfType(HttpPutFormContentFilter.class))
            .hasSize(1);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(HttpPutFormContentFilter.class)
public OrderedHttpPutFormContentFilter httpPutFormContentFilter() {
    return new OrderedHttpPutFormContentFilter();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:HttpEncodingAutoConfigurationTests.java   
@Bean
public OrderedHttpPutFormContentFilter httpPutFormContentFilter() {
    return new OrderedHttpPutFormContentFilter();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfigurationTests.java   
@Test
public void httpPutFormContentFilterIsAutoConfigured() {
    load();
    assertThat(this.context.getBeansOfType(OrderedHttpPutFormContentFilter.class))
            .hasSize(1);
}
项目:spring-boot-concourse    文件:WebMvcAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(HttpPutFormContentFilter.class)
public OrderedHttpPutFormContentFilter httpPutFormContentFilter() {
    return new OrderedHttpPutFormContentFilter();
}
项目:spring-boot-concourse    文件:HttpEncodingAutoConfigurationTests.java   
@Bean
public OrderedHttpPutFormContentFilter httpPutFormContentFilter() {
    return new OrderedHttpPutFormContentFilter();
}
项目:spring-boot-concourse    文件:WebMvcAutoConfigurationTests.java   
@Test
public void httpPutFormContentFilterIsAutoConfigured() {
    load();
    assertThat(this.context.getBeansOfType(OrderedHttpPutFormContentFilter.class))
            .hasSize(1);
}