Class PathMappedEndpoints
java.lang.Object
org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints
- All Implemented Interfaces:
Iterable<PathMappedEndpoint>
A collection of
path mapped endpoints.- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionPathMappedEndpoints(@Nullable String basePath, Collection<EndpointsSupplier<?>> suppliers) Create a newPathMappedEndpointsinstance for the given suppliers.PathMappedEndpoints(@Nullable String basePath, EndpointsSupplier<?> supplier) Create a newPathMappedEndpointsinstance for the given supplier. -
Method Summary
Modifier and TypeMethodDescriptiongetAdditionalPaths(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.@Nullable PathMappedEndpointgetEndpoint(EndpointId endpointId) Return thePathMappedEndpointwith the given ID ornullif the endpoint cannot be found.@Nullable StringgetPath(EndpointId endpointId) Return the full path for the endpoint with the given ID ornullif the endpoint cannot be found.@Nullable StringgetRootPath(EndpointId endpointId) Return the root path for the endpoint with the given ID ornullif the endpoint cannot be found.iterator()stream()Stream allpath mapped endpoints.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
PathMappedEndpoints
Create a newPathMappedEndpointsinstance for the given supplier.- Parameters:
basePath- the base path of the endpointssupplier- the endpoint supplier
-
PathMappedEndpoints
Create a newPathMappedEndpointsinstance for the given suppliers.- Parameters:
basePath- the base path of the endpointssuppliers- the endpoint suppliers
-
-
Method Details
-
getBasePath
-
getRootPath
Return the root path for the endpoint with the given ID ornullif the endpoint cannot be found.- Parameters:
endpointId- the endpoint ID- Returns:
- the root path or
null
-
getPath
Return the full path for the endpoint with the given ID ornullif the endpoint cannot be found.- Parameters:
endpointId- the endpoint ID- Returns:
- the full path or
null
-
getAllRootPaths
Return the root paths for each mapped endpoint (excluding additional paths).- Returns:
- all root paths
-
getAllPaths
Return the full paths for each mapped endpoint (excluding additional paths).- Returns:
- all root paths
-
getAdditionalPaths
public Collection<String> getAdditionalPaths(WebServerNamespace webServerNamespace, EndpointId endpointId) Return the additional paths for each mapped endpoint.- Parameters:
webServerNamespace- the web server namespaceendpointId- the endpoint ID- Returns:
- all additional paths
- Since:
- 3.4.0
-
getEndpoint
Return thePathMappedEndpointwith the given ID ornullif the endpoint cannot be found.- Parameters:
endpointId- the endpoint ID- Returns:
- the path mapped endpoint or
null
-
stream
Stream allpath mapped endpoints.- Returns:
- a stream of endpoints
-
iterator
- Specified by:
iteratorin interfaceIterable<PathMappedEndpoint>
-