| 限定符和类型 | 类和说明 |
|---|---|
protected class |
Chain.Node
执行链路节点
|
class |
FilterHandler<T extends Context>
对应
Filter |
class |
PathHandler<T extends Context>
路径处理器
|
class |
RouteHandler<T extends Context>
路由处理器
Route
|
| 限定符和类型 | 方法和说明 |
|---|---|
Chain<T> |
Chain.filter(String protocol,
String prefix,
int order,
Handler<T> handler)
添加Filter
|
Chain<T> |
Chain.route(String path,
Handler<T> handler)
指定路径处理器
|
Chain<T> |
Chain.route(String protocol,
String path,
Matchable<T> matcher,
Handler<T> handler)
指定路径和协议处理器
|
protected RouteHandler<T> |
Chain.routeHandler(String protocol,
String path,
Set<String> method,
Set<String> consume,
Set<String> produce,
Handler<T> handler)
创建一个
RouteHandler
用于子类重写 |
Copyright © 2024. All rights reserved.