类 PathMappedEndpoints

java.lang.Object
org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints
所有已实现的接口:
Iterable<PathMappedEndpoint>

public class PathMappedEndpoints extends Object implements Iterable<PathMappedEndpoint>
A collection of path mapped endpoints.
从以下版本开始:
2.0.0
作者:
Phillip Webb
  • 构造器详细资料

    • PathMappedEndpoints

      public PathMappedEndpoints(String basePath, EndpointsSupplier<?> supplier)
      Create a new PathMappedEndpoints instance for the given supplier.
      参数:
      basePath - the base path of the endpoints
      supplier - the endpoint supplier
    • PathMappedEndpoints

      public PathMappedEndpoints(String basePath, Collection<EndpointsSupplier<?>> suppliers)
      Create a new PathMappedEndpoints instance for the given suppliers.
      参数:
      basePath - the base path of the endpoints
      suppliers - 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 or null 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 or null 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 (excluding additional paths).
      返回:
      all root paths
    • getAllPaths

      public Collection<String> 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 namespace
      endpointId - the endpoint ID
      返回:
      all additional paths
      从以下版本开始:
      3.4.0
    • getEndpoint

      public PathMappedEndpoint getEndpoint(EndpointId endpointId)
      Return the PathMappedEndpoint with the given ID or null if the endpoint cannot be found.
      参数:
      endpointId - the endpoint ID
      返回:
      the path mapped endpoint or null
    • stream

      public Stream<PathMappedEndpoint> stream()
      返回:
      a stream of endpoints
    • iterator

      public Iterator<PathMappedEndpoint> iterator()
      指定者:
      iterator 在接口中 Iterable<PathMappedEndpoint>