Class EndpointLinksResolver
- java.lang.Object
- org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver
public class EndpointLinksResolver extends Object
A resolver forlinksto web endpoints.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints)Creates a newEndpointLinksResolverthat will resolve links to the givenendpoints.EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints, String basePath)Creates a newEndpointLinksResolverthat will resolve links to the givenendpointsthat are exposed beneath the givenbasePath.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Link>resolveLinks(String requestUrl)Resolves links to the known endpoints based on a request with the givenrequestUrl.
Constructor Detail
EndpointLinksResolver
public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints)
Creates a newEndpointLinksResolverthat will resolve links to the givenendpoints.- Parameters:
endpoints- the endpoints
EndpointLinksResolver
public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints, String basePath)
Creates a newEndpointLinksResolverthat will resolve links to the givenendpointsthat are exposed beneath the givenbasePath.- Parameters:
endpoints- the endpointsbasePath- the basePath
Method Detail
resolveLinks
public Map<String,Link> resolveLinks(String requestUrl)
Resolves links to the known endpoints based on a request with the givenrequestUrl.- Parameters:
requestUrl- the url of the request for the endpoint links- Returns:
- the links