类 PathMappedEndpoints
- java.lang.Object
- org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints
- 所有已实现的接口:
Iterable<PathMappedEndpoint>
public class PathMappedEndpoints extends Object implements Iterable<PathMappedEndpoint>
A collection ofpath mapped endpoints
.
构造器概要
构造器 构造器 说明 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.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Collection<String>
getAllPaths()
Return the full paths for each mapped endpoint.Collection<String>
getAllRootPaths()
Return the root paths for each mapped endpoint.String
getBasePath()
Return the base path for the endpoints.PathMappedEndpoint
getEndpoint(EndpointId endpointId)
Return thePathMappedEndpoint
with the given ID ornull
if the endpoint cannot be found.String
getPath(EndpointId endpointId)
Return the full path for the endpoint with the given ID ornull
if the endpoint cannot be found.String
getRootPath(EndpointId endpointId)
Return the root path for the endpoint with the given ID ornull
if the endpoint cannot be found.Iterator<PathMappedEndpoint>
iterator()
Stream<PathMappedEndpoint>
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
public PathMappedEndpoints(String basePath, EndpointsSupplier<?> supplier)
Create a newPathMappedEndpoints
instance for the given supplier.- 参数:
basePath
- the base path of the endpointssupplier
- the endpoint supplier
PathMappedEndpoints
public PathMappedEndpoints(String basePath, Collection<EndpointsSupplier<?>> suppliers)
Create a newPathMappedEndpoints
instance for the given suppliers.- 参数:
basePath
- the base path of the endpointssuppliers
- the endpoint suppliers
方法详细资料
getBasePath
public String getBasePath()
Return the base path for the endpoints.- 返回:
- the base path
getRootPath
public String getRootPath(EndpointId endpointId)
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
public String getPath(EndpointId endpointId)
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
public Collection<String> getAllRootPaths()
Return the root paths for each mapped endpoint.- 返回:
- all root paths
getAllPaths
public Collection<String> getAllPaths()
Return the full paths for each mapped endpoint.- 返回:
- all root paths
getEndpoint
public PathMappedEndpoint getEndpoint(EndpointId endpointId)
Return thePathMappedEndpoint
with the given ID ornull
if the endpoint cannot be found.- 参数:
endpointId
- the endpoint ID- 返回:
- the path mapped endpoint or
null
stream
public Stream<PathMappedEndpoint> stream()
Stream allpath mapped endpoints
.- 返回:
- a stream of endpoints
iterator
public Iterator<PathMappedEndpoint> iterator()
- 指定者:
iterator
在接口中Iterable<PathMappedEndpoint>