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

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:FilterOrderingIntegrationTests.java   
@Test
public void testFilterOrdering() {
    load();
    List<RegisteredFilter> registeredFilters = this.context
            .getBean(MockEmbeddedServletContainerFactory.class).getContainer()
            .getRegisteredFilters();
    List<Filter> filters = new ArrayList<Filter>(registeredFilters.size());
    for (RegisteredFilter registeredFilter : registeredFilters) {
        filters.add(registeredFilter.getFilter());
    }
    Iterator<Filter> iterator = filters.iterator();
    assertThat(iterator.next()).isInstanceOf(OrderedCharacterEncodingFilter.class);
    assertThat(iterator.next()).isInstanceOf(SessionRepositoryFilter.class);
    assertThat(iterator.next()).isInstanceOf(Filter.class);
    assertThat(iterator.next()).isInstanceOf(Filter.class);
    assertThat(iterator.next()).isInstanceOf(OrderedRequestContextFilter.class);
    assertThat(iterator.next()).isInstanceOf(FilterChainProxy.class);
}
项目:spring-boot-concourse    文件:FilterOrderingIntegrationTests.java   
@Test
public void testFilterOrdering() {
    load();
    List<RegisteredFilter> registeredFilters = this.context
            .getBean(MockEmbeddedServletContainerFactory.class).getContainer()
            .getRegisteredFilters();
    List<Filter> filters = new ArrayList<Filter>(registeredFilters.size());
    for (RegisteredFilter registeredFilter : registeredFilters) {
        filters.add(registeredFilter.getFilter());
    }
    Iterator<Filter> iterator = filters.iterator();
    assertThat(iterator.next()).isInstanceOf(OrderedCharacterEncodingFilter.class);
    assertThat(iterator.next()).isInstanceOf(SessionRepositoryFilter.class);
    assertThat(iterator.next()).isInstanceOf(Filter.class);
    assertThat(iterator.next()).isInstanceOf(Filter.class);
    assertThat(iterator.next()).isInstanceOf(OrderedRequestContextFilter.class);
    assertThat(iterator.next()).isInstanceOf(FilterChainProxy.class);
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:Spring-Security-Third-Edition    文件:WebMvcConfig.java   
@Bean
public OrderedRequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean({ RequestContextListener.class,
        RequestContextFilter.class })
public static RequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}
项目:spring-boot-concourse    文件:WebMvcAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean({ RequestContextListener.class,
        RequestContextFilter.class })
public RequestContextFilter requestContextFilter() {
    return new OrderedRequestContextFilter();
}