类 EndpointLinksResolver
- java.lang.Object
- org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver
public class EndpointLinksResolver extends Object
A resolver forlinks
to web endpoints.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints)
Creates a newEndpointLinksResolver
that will resolve links to the givenendpoints
.EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints, String basePath)
Creates a newEndpointLinksResolver
that will resolve links to the givenendpoints
that are exposed beneath the givenbasePath
.
构造器详细资料
EndpointLinksResolver
public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints)
Creates a newEndpointLinksResolver
that will resolve links to the givenendpoints
.- 参数:
endpoints
- the endpoints
EndpointLinksResolver
public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints, String basePath)
Creates a newEndpointLinksResolver
that will resolve links to the givenendpoints
that are exposed beneath the givenbasePath
.- 参数:
endpoints
- the endpointsbasePath
- the basePath
方法详细资料
resolveLinks
public Map<String,Link> resolveLinks(String requestUrl)
Resolves links to the known endpoints based on a request with the givenrequestUrl
.- 参数:
requestUrl
- the url of the request for the endpoint links- 返回:
- the links