public interface RoutingTable<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(int index,
Routing<T> routing)
添加路由记录
|
void |
add(Routing<T> routing)
添加路由记录
|
void |
clear()
清空
|
int |
count()
数量
|
Collection<Routing<T>> |
getAll()
获取所有路由记录
|
List<T> |
matchAll(String path,
MethodType method)
区配多个目标
|
T |
matchOne(String path,
MethodType method)
区配一个目标
|
void |
remove(String pathPrefix)
移除路由记录
|
void remove(String pathPrefix)
pathPrefix - 路径前缀int count()
Collection<Routing<T>> getAll()
T matchOne(String path, MethodType method)
path - 路径method - 方法List<T> matchAll(String path, MethodType method)
path - 路径method - 方法void clear()
Copyright © 2023. All rights reserved.