类 EndpointLinksResolver

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

public class EndpointLinksResolver extends Object
A resolver for links to web endpoints.
从以下版本开始:
2.0.0
作者:
Andy Wilkinson
  • 构造器详细资料

    • EndpointLinksResolver

      public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints)
      Creates a new EndpointLinksResolver that will resolve links to the given endpoints.
      参数:
      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.
      参数:
      endpoints - the endpoints
      basePath - the basePath
  • 方法详细资料

    • resolveLinks

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