码迷,mamicode.com
首页 > 其他好文 > 详细

微服务系列zuul(一)

时间:2017-05-12 00:17:02      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:string   ons   any   stand   standard   routing   tin   sso   erp   

 

 

filterType

pre

route

post

error

static

 

fileOrder

 

shouldFilter

 

run

源代码所示

    /**
     * to classify a filter by type. Standard types in Zuul are "pre" for pre-routing filtering,
     * "route" for routing to an origin, "post" for post-routing filters, "error" for error handling.
     * We also support a "static" type for static responses see  StaticResponseFilter.
     * Any filterType made be created or added and run by calling FilterProcessor.runFilters(type)
     *
     * @return A String representing that type
     */
    abstract public String filterType();

    /**
     * filterOrder() must also be defined for a filter. Filters may have the same  filterOrder if precedence is not
     * important for a filter. filterOrders do not need to be sequential.
     *
     * @return the int order of a filter
     */
    abstract public int filterOrder();

 

微服务系列zuul(一)

标签:string   ons   any   stand   standard   routing   tin   sso   erp   

原文地址:http://www.cnblogs.com/ulysses-you/p/6843208.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!