code: public Map<String, Link> resolveLinks(String requestUrl) {
  		String normalizedUrl = normalizeRequestUrl(requestUrl);
  		Map<String, Link> links = new LinkedHashMap<>();
  		links.put("self", new Link(normalizedUrl));
  		for (ExposableEndpoint<?> endpoint : this.endpoints) {
  			if (endpoint instanceof ExposableWebEndpoint) {
  				collectLinks(links, (ExposableWebEndpoint) endpoint, normalizedUrl);
  			}
  			else if (endpoint instanceof PathMappedEndpoint) {
  				String rootPath = ((PathMappedEndpoint) endpoint).getRootPath();
  				Link link = createLink(normalizedUrl, rootPath);
  				links.put(endpoint.getEndpointId().toLowerCaseString(), link);
  			}
  		}
  		return links;
  	}
docs: Resolves links to the known endpoints based on a request with the given
  {@code requestUrl}.
  @param requestUrl the url of the request for the endpoint links
  @return the links