public class Route
extends java.lang.Object
构造器和说明 |
---|
Route(java.lang.String id) |
限定符和类型 | 方法和说明 |
---|---|
Route |
filter(ExFilter filter)
添加过滤器
|
Route |
filter(ExFilter filter,
int index)
添加过滤器
|
Route |
filters(java.util.Collection<ExFilter> filters)
添加过滤器
|
java.util.List<RankEntity<ExFilter>> |
getFilters()
过滤器
|
java.lang.String |
getId()
标识
|
int |
getIndex()
顺序位
|
java.util.List<ExPredicate> |
getPredicates()
匹配检测器
|
java.net.URI |
getTarget()
目标
|
TimeoutProperties |
getTimeout()
超时
|
Route |
index(int index)
配置顺序
|
boolean |
matched(ExContext ctx)
匹配
|
Route |
path(java.lang.String path)
添加路径匹配检测器
|
Route |
predicate(ExPredicate predicate)
添加匹配检测器
|
Route |
target(java.lang.String uri)
配置目标
|
Route |
target(java.net.URI uri)
配置目标
|
Route |
timeout(TimeoutProperties timeout)
配置超时
|
public Route index(int index)
public Route target(java.net.URI uri)
public Route target(java.lang.String uri)
public Route timeout(TimeoutProperties timeout)
public Route predicate(ExPredicate predicate)
public Route path(java.lang.String path)
public boolean matched(ExContext ctx)
public java.lang.String getId()
public int getIndex()
public java.net.URI getTarget()
public java.util.List<ExPredicate> getPredicates()
public java.util.List<RankEntity<ExFilter>> getFilters()
public TimeoutProperties getTimeout()