public class RouteFactoryManager
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static void |
addFactory(RouteFilterFactory factory) |
static void |
addFactory(RoutePredicateFactory factory) |
static void |
addHandler(RouteHandler handler) |
static ExFilter |
buildFilter(java.lang.String filterConfig)
构建过滤器
|
static java.util.List<RankEntity<ExFilter>> |
buildFilterList(java.lang.String... filterConfigs)
构建过滤器链
|
static ExPredicate |
buildPredicate(java.lang.String predicateConfig)
构建检测器
|
static ExFilter |
getFilter(java.lang.String prefix,
java.lang.String config)
获取过滤器
|
static RouteHandler |
getHandler(java.lang.String schema)
获取处理器
|
static ExPredicate |
getPredicate(java.lang.String prefix,
java.lang.String config)
获取检测器
|
public static void addFactory(RouteFilterFactory factory)
public static void addFactory(RoutePredicateFactory factory)
public static void addHandler(RouteHandler handler)
public static RouteHandler getHandler(java.lang.String schema)
public static ExFilter getFilter(java.lang.String prefix, java.lang.String config)
prefix
- 配置前缀config
- 配置public static ExPredicate getPredicate(java.lang.String prefix, java.lang.String config)
prefix
- 配置前缀config
- 配置@Nullable public static ExPredicate buildPredicate(java.lang.String predicateConfig)
public static java.util.List<RankEntity<ExFilter>> buildFilterList(java.lang.String... filterConfigs) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException