From 483f8479bd1021fb744ba49c11884086784ffe2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kulcs=C3=A1r=20Roland?= Date: Mon, 8 May 2017 20:06:35 +0200 Subject: [PATCH] #580 - Update IANA relation types Per https://www.iana.org/assignments/link-relations/link-relations.xhtml, the list of standardized IANA rels has grown. --- .../org/springframework/hateoas/IanaRels.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/springframework/hateoas/IanaRels.java b/src/main/java/org/springframework/hateoas/IanaRels.java index d16b79ac..8f6292fa 100644 --- a/src/main/java/org/springframework/hateoas/IanaRels.java +++ b/src/main/java/org/springframework/hateoas/IanaRels.java @@ -27,6 +27,7 @@ import java.util.HashSet; * * @see http://www.iana.org/assignments/link-relations/link-relations.xhtml * @author Oliver Gierke + * @author Roland Kulcsár */ @UtilityClass public class IanaRels { @@ -37,15 +38,16 @@ public class IanaRels { Collection rels = new HashSet(); - rels.addAll(Arrays.asList("about", "alternate", "appendix", "archives", "author", "bookmark", "canonical", - "chapter", "collection", "contents", "copyright", "create-form", "current", "describedby", "describes", - "disclosure", "duplicate", "edit", "edit-form", "edit-media", "enclosure", "first", "glossary", "help", "hosts", - "hub", "icon", "index", "item", "last", "latest-version", "license", "lrdd", "memento", "monitor", - "monitor-group", "next", "next-archive", "nofollow", "noreferrer", "original", "payment", "predecessor-version", - "prefetch", "prev", "preview", "previous", "prev-archive", "privacy-policy", "profile", "related", "replies", + rels.addAll(Arrays.asList("about", "alternate", "appendix", "archives", "author", "blocked-by", "bookmark", + "canonical", "chapter", "collection", "contents", "convertedFrom", "copyright", "create-form", "current", + "describedby", "describes", "disclosure", "dns-prefetch", "duplicate", "edit", "edit-form", "edit-media", + "enclosure", "first", "glossary", "help", "hosts", "hub", "icon", "index", "item", "last", "latest-version", + "license", "lrdd", "memento", "monitor", "monitor-group", "next", "next-archive", "nofollow", "noreferrer", + "original", "payment", "pingback", "preconnect", "predecessor-version", "prefetch", "preload", "prerender", + "prev", "preview", "previous", "prev-archive", "privacy-policy", "profile", "related", "restconf", "replies", "search", "section", "self", "service", "start", "stylesheet", "subsection", "successor-version", "tag", - "terms-of-service", "timegate", "timemap", "type", "up", "version-history", "via", "working-copy", - "working-copy-of")); + "terms-of-service", "timegate", "timemap", "type", "up", "version-history", "via", "webmention", + "working-copy", "working-copy-of")); RELS = Collections.unmodifiableCollection(rels); }