| 限定符和类型 | 类和说明 |
|---|---|
class |
FilterHandler<T extends Context>
对应
Filter |
class |
RouteHandler<T extends Context>
路由处理器
Route
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected PathHandler<T> |
Chain.Node.handler |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
RouteHandler.compareTo(PathHandler<T> other) |
int |
FilterHandler.compareTo(PathHandler<T> other) |
int |
PathHandler.compareTo(PathHandler<T> other) |
protected int |
PathHandler.doCompare(PathHandler<T> other)
当前分片 所计算的 优先级值 用于 Handler 排序匹配
匹配规则:
1.
|
protected boolean |
Chain.handle(PathHandler<T> h,
T ctx)
执行某个
RouteHandler |
Chain<T> |
Chain.register(PathHandler<T> handler)
注册
PathHandler
按优先级compareTo(PathHandler)}的比较结果添加 |
| 构造器和说明 |
|---|
Node(Chain.Node pre,
PathHandler<T> handler,
Chain.Node next) |
Copyright © 2024. All rights reserved.