spring-hateoas-ext/src/main/java/de/escalon/hypermedia/affordance/Affordance.java
public String asHeader() {
        StringBuilder result = new StringBuilder();
        for (Map.Entry<String, List<String>> linkParamEntry : linkParams.entrySet()) {
            if (result.length() != 0) {
                result.append("; ");
            }
            String linkParamEntryKey = linkParamEntry.getKey();
            if (REL.paramName.equals(linkParamEntryKey) || REV.paramName.equals(linkParamEntryKey)) {
                result.append(linkParamEntryKey)
                        .append("=");
                result.append("\"")
                        .append(StringUtils.collectionToDelimitedString(linkParamEntry.getValue(), " "))
                        .append("\"");
            } else {
                StringBuilder linkParams = new StringBuilder();
                for (String value : linkParamEntry.getValue()) {
                    if (linkParams.length() != 0) {
                        linkParams.append("; ");
                    }
                    linkParams.append(linkParamEntryKey)
                            .append("=");
                    linkParams.append("\"")
                            .append(value)
                            .append("\"");
                }
                result.append(linkParams);
            }
        }

        String linkHeader = "<" + partialUriTemplate.asComponents()
                .toString() + ">; ";

        return result.insert(0, linkHeader)
                .toString();
    }
public String asHeader() {
        StringBuilder result = new StringBuilder();
        for (Map.Entry<String, List<String>> linkParamEntry : linkParams.entrySet()) {
            if (result.length() != 0) {
                result.append("; ");
            }
            String linkParamEntryKey = linkParamEntry.getKey();
            if (REL.paramName.equals(linkParamEntryKey) || REV.paramName.equals(linkParamEntryKey)) {
                result.append(linkParamEntryKey)
                        .append("=");
                result.append("\"")
                        .append(StringUtils.collectionToDelimitedString(linkParamEntry.getValue(), " "))
                        .append("\"");
            } else {
                StringBuilder linkParams = new StringBuilder();
                for (String value : linkParamEntry.getValue()) {
                    if (linkParams.length() != 0) {
                        linkParams.append("; ");
                    }
                    linkParams.append(linkParamEntryKey)
                            .append("=");
                    linkParams.append("\"")
                            .append(value)
                            .append("\"");
                }
                result.append(linkParams);
            }
        }

        String linkHeader = "<" + partialUriTemplate.asComponents()
                .toString() + ">; ";

        return result.insert(0, linkHeader)
                .toString();
    }
Affordance represented as http link header value. Note that the href may be templated, for convenience you can
use {@link #getHeaderName()} to ensure a Link or Link-Header is produced appropriately.

@return Link or Link-template header value