#788 - Switch to IanaLinkRelations internally.

This commit is contained in:
Greg Turnquist
2019-01-18 12:19:25 -06:00
parent 0f696dd637
commit 4081e58a1f
25 changed files with 115 additions and 99 deletions

View File

@@ -106,11 +106,11 @@ public class Link implements Serializable {
/**
* Creates a new link to the given URI with the self rel.
*
* @see #REL_SELF
* @see IanaLinkRelation#SELF
* @param href must not be {@literal null} or empty.
*/
public Link(String href) {
this(href, REL_SELF);
this(href, IanaLinkRelation.SELF.value());
}
/**
@@ -171,7 +171,7 @@ public class Link implements Serializable {
* @return
*/
public Link withSelfRel() {
return withRel(Link.REL_SELF);
return withRel(IanaLinkRelation.SELF.value());
}
/**