public interface RoutingTable<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(int index,
Routing<T> routing)
添加路由记录
|
void |
add(Routing<T> routing)
添加路由记录
|
void |
clear()
清空
|
int |
count()
数量
|
Collection<Routing<T>> |
getAll()
获取所有的路由记录
|
Collection<Routing<T>> |
getBy(String path)
获取路径的路由记录
|
List<T> |
matchMore(String path,
MethodType method)
区配多个目标
|
T |
matchOne(String path,
MethodType method)
区配一个目标
|
Result<T> |
matchOneAndStatus(String path,
MethodType method)
区配一个目标并给出状态
|
void |
remove(Class<?> controllerClz)
移除路由记录
|
void |
remove(String pathPrefix)
移除路由记录
|
void remove(String pathPrefix)
pathPrefix - 路径前缀void remove(Class<?> controllerClz)
controllerClz - 控制器类int count()
Collection<Routing<T>> getAll()
Collection<Routing<T>> getBy(String path)
path - 路径T matchOne(String path, MethodType method)
path - 路径method - 方法Result<T> matchOneAndStatus(String path, MethodType method)
path - 路径method - 方法List<T> matchMore(String path, MethodType method)
path - 路径method - 方法void clear()
Copyright © 2024. All rights reserved.