接口 PathMapper
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Strategy interface used to provide a mapping between an endpoint ID and the root path
where it will be exposed.
- 从以下版本开始:
- 2.0.0
- 作者:
- Stephane Nicoll, Phillip Webb
-
方法概要
修饰符和类型方法说明static StringgetRootPath(List<PathMapper> pathMappers, EndpointId endpointId) Resolve the root path for the specifiedendpointIdfrom the given path mappers.getRootPath(EndpointId endpointId) Resolve the root path for the specifiedendpointId.
-
方法详细资料
-
getRootPath
Resolve the root path for the specifiedendpointId.- 参数:
endpointId- the id of an endpoint- 返回:
- the path of the endpoint or
nullif this mapper doesn't support the given endpoint ID
-
getRootPath
Resolve the root path for the specifiedendpointIdfrom the given path mappers. If no mapper matches then the ID itself is returned.- 参数:
pathMappers- the path mappers (may benull)endpointId- the id of an endpoint- 返回:
- the path of the endpoint
-