Class LinkMapper

java.lang.Object
io.spring.initializr.web.mapper.LinkMapper

public final class LinkMapper extends Object
Generate a json representation for Link.
Author:
Stephane Nicoll
  • Method Details

    • mapLinks

      public static com.fasterxml.jackson.databind.node.ObjectNode mapLinks(List<Link> links)
      Map the specified links to a json model. If several links share the same relation, they are grouped together.
      Parameters:
      links - the links to map
      Returns:
      a model for the specified links