Class EndpointLinksResolver

    • Constructor Detail

      • EndpointLinksResolver

        public 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.
        Parameters:
        endpoints - the endpoints
        basePath - the basePath
    • Method Detail

      • resolveLinks

        public Map<String,​LinkresolveLinks​(String requestUrl)
        Resolves links to the known endpoints based on a request with the given requestUrl.
        Parameters:
        requestUrl - the url of the request for the endpoint links
        Returns:
        the links