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
ConstructorDescriptionEndpointLinksResolver
(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
. -
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 newEndpointLinksResolver
that will resolve links to the givenendpoints
.- Parameters:
endpoints
- the endpoints
-
EndpointLinksResolver
Creates a newEndpointLinksResolver
that will resolve links to the givenendpoints
that 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
-