| Constructor and Description |
|---|
EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints)
Creates a new
EndpointLinksResolver that will resolve links to the given
endpoints. |
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. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Link> |
resolveLinks(String requestUrl)
Resolves links to the known endpoints based on a request with the given
requestUrl. |
public EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints)
EndpointLinksResolver that will resolve links to the given
endpoints.endpoints - the endpointspublic EndpointLinksResolver(Collection<? extends ExposableEndpoint<?>> endpoints, String basePath)
EndpointLinksResolver that will resolve links to the given
endpoints that are exposed beneath the given basePath.endpoints - the endpointsbasePath - the basePath