Class EndpointLinksResolver
java.lang.Object
org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver
A resolver for
links to web endpoints.- Since:
- 2.0.0
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointLinksResolver(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
Modifier and TypeMethodDescriptionresolveLinks(String requestUrl) Resolves links to the known endpoints based on a request with the givenrequestUrl.
-
Constructor Details
-
EndpointLinksResolver
Creates a newEndpointLinksResolverthat will resolve links to the givenendpoints.- Parameters:
endpoints- the endpoints
-
EndpointLinksResolver
Creates a newEndpointLinksResolverthat will resolve links to the givenendpointsthat are exposed beneath the givenbasePath.- Parameters:
endpoints- the endpointsbasePath- the basePath
-
-
Method Details
-
resolveLinks
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
-