public interface RoutingTable<T>
| Modifier and Type | Method and Description |
|---|---|
void |
add(Routing<T> routing)
添加路由记录
|
void |
clear()
清空
|
int |
count()
数量
|
Collection<Routing<T>> |
getAll()
获取所有的路由记录
|
Collection<Routing<T>> |
getBy(Class<?> controllerClz)
获取控制器的路由记录
|
Collection<Routing<T>> |
getBy(String path)
获取路径的路由记录
|
default List<T> |
matchMore(String path,
MethodType method)
Deprecated.
3.4
|
List<T> |
matchMore(String path,
String version,
MethodType method)
区配多个目标
|
default T |
matchOne(String path,
MethodType method)
Deprecated.
3.4
|
T |
matchOne(String path,
String version,
MethodType method)
区配一个目标
|
default Result<T> |
matchOneAndStatus(String path,
MethodType method)
Deprecated.
3.4
|
Result<T> |
matchOneAndStatus(String path,
String version,
MethodType method)
区配一个目标并给出状态
|
void |
remove(Class<?> controllerClz)
移除路由记录
|
void |
remove(String pathPrefix)
移除路由记录
|
void remove(String pathPrefix)
pathPrefix - 路径前缀void remove(Class<?> controllerClz)
controllerClz - 控制器类int count()
void clear()
Collection<Routing<T>> getAll()
Collection<Routing<T>> getBy(String path)
path - 路径Collection<Routing<T>> getBy(Class<?> controllerClz)
controllerClz - 控制器类T matchOne(String path, String version, MethodType method)
path - 路径version - 版本号method - 方法Result<T> matchOneAndStatus(String path, String version, MethodType method)
path - 路径version - 版本号method - 方法List<T> matchMore(String path, String version, MethodType method)
path - 路径version - 版本号method - 方法@Deprecated default T matchOne(String path, MethodType method)
@Deprecated default Result<T> matchOneAndStatus(String path, MethodType method)
@Deprecated default List<T> matchMore(String path, MethodType method)
Copyright © 2025. All rights reserved.