public class EndpointLinksResolver
extends java.lang.Object
links to web endpoints.| Constructor and Description |
|---|
EndpointLinksResolver(java.util.Collection<? extends ExposableEndpoint<?>> endpoints)
Creates a new
EndpointLinksResolver that will resolve links to the given
endpoints. |
EndpointLinksResolver(java.util.Collection<? extends ExposableEndpoint<?>> endpoints,
java.lang.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 |
|---|---|
java.util.Map<java.lang.String,Link> |
resolveLinks(java.lang.String requestUrl)
Resolves links to the known endpoints based on a request with the given
requestUrl. |
public EndpointLinksResolver(java.util.Collection<? extends ExposableEndpoint<?>> endpoints)
EndpointLinksResolver that will resolve links to the given
endpoints.endpoints - the endpointspublic EndpointLinksResolver(java.util.Collection<? extends ExposableEndpoint<?>> endpoints, java.lang.String basePath)
EndpointLinksResolver that will resolve links to the given
endpoints that are exposed beneath the given basePath.endpoints - the endpointsbasePath - the basePathpublic java.util.Map<java.lang.String,Link> resolveLinks(java.lang.String requestUrl)
requestUrl.requestUrl - the url of the request for the endpoint links