java.lang.Object
org.gcube.informationsystem.resourceregistry.http.headers.link.LinkHeaderEmitter

public final class LinkHeaderEmitter extends Object
Formats LinkRelation entries accumulated by a PEP into RFC 8288 Link response headers. Used exclusively by LinkResponseFilter.
Author:
Luca Frosini (ISTI - CNR)
  • Method Details

    • addLinkHeaders

      public static void addLinkHeaders(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers, List<LinkRelation> relations)
      Adds one Link response header per accumulated relation.
      Parameters:
      headers - the mutable response headers map
      relations - the Link relations accumulated during the request