Java Code Examples for org.springframework.cloud.netflix.zuul.filters.support.FilterConstants#PRE_DECORATION_FILTER_ORDER

The following examples show how to use org.springframework.cloud.netflix.zuul.filters.support.FilterConstants#PRE_DECORATION_FILTER_ORDER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TokenContextFilter.java    From zuihou-admin-cloud with Apache License 2.0 5 votes vote down vote up
/**
 * filterOrder:通过int值来定义过滤器的执行顺序
 *
 * @return
 */
@Override
public int filterOrder() {
    // 数字越大,优先级越低
    /**
     * 一定要在 {@link org.springframework.cloud.netflix.zuul.filters.pre.PreDecorationFilter} 过滤器之后执行,因为这个过滤器做了路由  而我们需要这个路由信息来鉴权
     * 这个过滤器会将很多我们鉴权需要的信息放置在请求上下文中。故一定要在此过滤器之后执行
     */
    return FilterConstants.PRE_DECORATION_FILTER_ORDER + 1;
}
 
Example 2
Source File: AuthSellerFilter.java    From code with Apache License 2.0 4 votes vote down vote up
@Override
public int filterOrder() {
    return FilterConstants.PRE_DECORATION_FILTER_ORDER - 1;
}
 
Example 3
Source File: AuthBuyerFilter.java    From code with Apache License 2.0 4 votes vote down vote up
@Override
public int filterOrder() {
    return FilterConstants.PRE_DECORATION_FILTER_ORDER - 1;
}
 
Example 4
Source File: AuthFilter.java    From code with Apache License 2.0 4 votes vote down vote up
@Override
public int filterOrder() {
    return FilterConstants.PRE_DECORATION_FILTER_ORDER - 1;
}
 
Example 5
Source File: PreTokenFilter.java    From code with Apache License 2.0 4 votes vote down vote up
@Override
public int filterOrder() {
    return FilterConstants.PRE_DECORATION_FILTER_ORDER - 1;
}
 
Example 6
Source File: FilterPre.java    From roncoo-education with MIT License 4 votes vote down vote up
@Override
public int filterOrder() {
    return FilterConstants.PRE_DECORATION_FILTER_ORDER - 1;
}
 
Example 7
Source File: PreRequestLogFilter.java    From spring-cloud-docker-microservice-book-code with Apache License 2.0 4 votes vote down vote up
@Override
public int filterOrder() {
  return FilterConstants.PRE_DECORATION_FILTER_ORDER - 1;
}
 
Example 8
Source File: CustomPreZuulFilter.java    From spring-security-oauth with MIT License 4 votes vote down vote up
@Override
public int filterOrder() {
	return FilterConstants.PRE_DECORATION_FILTER_ORDER + 1;
}
 
Example 9
Source File: MyFilter.java    From blog-examples with Apache License 2.0 4 votes vote down vote up
@Override
public int filterOrder() {
    return FilterConstants.PRE_DECORATION_FILTER_ORDER - 1;
}