| 构造器和说明 |
|---|
RouterDefault() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(String path,
Endpoint endpoint,
MethodType method,
int index,
Handler handler)
添加路由关系 for Handler
|
void |
add(String path,
MethodType method,
int index,
Listener listener)
添加路由关系 for XListener
|
void |
clear()
清空路由关系
|
List<Routing<Handler>> |
getAll(Endpoint endpoint) |
List<Handler> |
matchAll(Context ctx,
Endpoint endpoint)
区配多个目标(根据上上文)
|
Handler |
matchOne(Context ctx,
Endpoint endpoint)
区配一个目标(根据上上文)
|
Listener |
matchOne(Session session)
区配一个目标(根据上上文)
|
public void add(String path, Endpoint endpoint, MethodType method, int index, Handler handler)
public void add(String path, MethodType method, int index, Listener listener)
Copyright © 2021. All rights reserved.