spring-hateoas-ext/src/main/java/de/escalon/hypermedia/affordance/Affordance.java
public void setAnchor(String anchor) {
        if (anchor != null)
            linkParams.set(ANCHOR.paramName, anchor);
        else
            linkParams.remove(ANCHOR.paramName);
    }
public void setAnchor(String anchor) {
        if (anchor != null)
            linkParams.set(ANCHOR.paramName, anchor);
        else
            linkParams.remove(ANCHOR.paramName);
    }
By default, the context of a link conveyed in the Link header field is the IRI of the requested resource. <p>When
present, the anchor parameter overrides this with another URI, such as a fragment of this resource, or a third
resource (i.e., when the anchor value is an absolute URI).  If the anchor parameter's value is a relative URI,
parsers MUST resolve it as per [RFC3986], Section 5.  Note that any base URI from the body's content is not
applied.

@param anchor base uri to define