类 PathMappedEndpoints
java.lang.Object
org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints
- 所有已实现的接口:
Iterable<PathMappedEndpoint>
A collection of
path mapped endpoints
.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
构造器概要
构造器构造器说明PathMappedEndpoints
(String basePath, Collection<EndpointsSupplier<?>> suppliers) Create a newPathMappedEndpoints
instance for the given suppliers.PathMappedEndpoints
(String basePath, EndpointsSupplier<?> supplier) Create a newPathMappedEndpoints
instance for the given supplier. -
方法概要
修饰符和类型方法说明getAdditionalPaths
(WebServerNamespace webServerNamespace, EndpointId endpointId) Return the additional paths for each mapped endpoint.Return the full paths for each mapped endpoint (excluding additional paths).Return the root paths for each mapped endpoint (excluding additional paths).Return the base path for the endpoints.getEndpoint
(EndpointId endpointId) Return thePathMappedEndpoint
with the given ID ornull
if the endpoint cannot be found.getPath
(EndpointId endpointId) Return the full path for the endpoint with the given ID ornull
if the endpoint cannot be found.getRootPath
(EndpointId endpointId) Return the root path for the endpoint with the given ID ornull
if the endpoint cannot be found.iterator()
stream()
Stream allpath mapped endpoints
.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
构造器详细资料
-
PathMappedEndpoints
Create a newPathMappedEndpoints
instance for the given supplier.- 参数:
basePath
- the base path of the endpointssupplier
- the endpoint supplier
-
PathMappedEndpoints
Create a newPathMappedEndpoints
instance for the given suppliers.- 参数:
basePath
- the base path of the endpointssuppliers
- the endpoint suppliers
-
-
方法详细资料
-
getBasePath
Return the base path for the endpoints.- 返回:
- the base path
-
getRootPath
Return the root path for the endpoint with the given ID ornull
if the endpoint cannot be found.- 参数:
endpointId
- the endpoint ID- 返回:
- the root path or
null
-
getPath
Return the full path for the endpoint with the given ID ornull
if the endpoint cannot be found.- 参数:
endpointId
- the endpoint ID- 返回:
- the full path or
null
-
getAllRootPaths
Return the root paths for each mapped endpoint (excluding additional paths).- 返回:
- all root paths
-
getAllPaths
Return the full paths for each mapped endpoint (excluding additional paths).- 返回:
- all root paths
-
getAdditionalPaths
public Collection<String> getAdditionalPaths(WebServerNamespace webServerNamespace, EndpointId endpointId) Return the additional paths for each mapped endpoint.- 参数:
webServerNamespace
- the web server namespaceendpointId
- the endpoint ID- 返回:
- all additional paths
- 从以下版本开始:
- 3.4.0
-
getEndpoint
Return thePathMappedEndpoint
with the given ID ornull
if the endpoint cannot be found.- 参数:
endpointId
- the endpoint ID- 返回:
- the path mapped endpoint or
null
-
stream
Stream allpath mapped endpoints
.- 返回:
- a stream of endpoints
-
iterator
- 指定者:
iterator
在接口中Iterable<PathMappedEndpoint>
-