Class EndpointLinksResolver

java.lang.Object
org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver

public class EndpointLinksResolver extends Object
A resolver for links to web endpoints.
Since:
2.0.0
Author:
Andy Wilkinson
  • Constructor Details

    • EndpointLinksResolver

      public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints)
      Creates a new EndpointLinksResolver that will resolve links to the given endpoints.
      Parameters:
      endpoints - the endpoints
    • EndpointLinksResolver

      public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints, String basePath)
      Creates a new EndpointLinksResolver that will resolve links to the given endpoints that are exposed beneath the given basePath.
      Parameters:
      endpoints - the endpoints
      basePath - the basePath
  • Method Details

    • resolveLinks

      public Map<String,Link> resolveLinks(String requestUrl)
      Resolves links to the known endpoints based on a request with the given requestUrl.
      Parameters:
      requestUrl - the url of the request for the endpoint links
      Returns:
      the links