org.springframework.boot.actuate.endpoint.web

Class PathMappedEndpoints

  • java.lang.Object
    • org.springframework.boot.actuate.endpoint.web.PathMappedEndpoints
    • Constructor Detail

      • PathMappedEndpoints

        public PathMappedEndpoints(String basePath,
                                   EndpointsSupplier<?> supplier)
        Create a new PathMappedEndpoints instance for the given supplier.
        Parameters:
        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.
        Parameters:
        basePath - the base path of the endpoints
        suppliers - the endpoint suppliers
    • Method Detail

      • getBasePath

        public String getBasePath()
        Return the base path for the endpoints.
        Returns:
        the base path
      • getRootPath

        public String getRootPath(String endpointId)
        Return the root path for the endpoint with the given ID or null if the endpoint cannot be found.
        Parameters:
        endpointId - the endpoint ID
        Returns:
        the root path or null
      • getPath

        public String getPath(String endpointId)
        Return the full path for the endpoint with the given ID or null if the endpoint cannot be found.
        Parameters:
        endpointId - the endpoint ID
        Returns:
        the full path or null
      • getAllRootPaths

        public Collection<String> getAllRootPaths()
        Return the root paths for each mapped endpoint.
        Returns:
        all root paths
      • getAllPaths

        public Collection<String> getAllPaths()
        Return the full paths for each mapped endpoint.
        Returns:
        all root paths
      • getEndpoint

        public PathMappedEndpoint getEndpoint(String endpointId)
        Return the PathMappedEndpoint with the given ID or null if the endpoint cannot be found.
        Parameters:
        endpointId - the endpoint ID
        Returns:
        the path mapped endpoint or null