#1215 - Update RFC-5988 references to RFC-8288.

Update code, javadoc, and documentation changes.
This commit is contained in:
Vedran Pavic
2020-03-09 17:56:11 +01:00
committed by Greg Turnquist
parent 31a8f77acd
commit 1f49360637
8 changed files with 17 additions and 17 deletions

View File

@@ -462,18 +462,18 @@ public class Link implements Serializable {
}
/**
* Factory method to easily create {@link Link} instances from RFC-5988 compatible {@link String} representations of a
* Factory method to easily create {@link Link} instances from RFC-8288 compatible {@link String} representations of a
* link.
*
* @param element an RFC-5899 compatible representation of a link.
* @throws IllegalArgumentException if a {@link String} was given that does not adhere to RFC-5899.
* @param element an RFC-8288 compatible representation of a link.
* @throws IllegalArgumentException if a {@link String} was given that does not adhere to RFC-8288.
* @throws IllegalArgumentException if no {@code rel} attribute could be found.
* @return
*/
public static Link valueOf(String element) {
if (!StringUtils.hasText(element)) {
throw new IllegalArgumentException(String.format("Given link header %s is not RFC5988 compliant!", element));
throw new IllegalArgumentException(String.format("Given link header %s is not RFC-8288 compliant!", element));
}
Matcher matcher = URI_AND_ATTRIBUTES_PATTERN.matcher(element);
@@ -519,7 +519,7 @@ public class Link implements Serializable {
return link;
} else {
throw new IllegalArgumentException(String.format("Given link header %s is not RFC5988 compliant!", element));
throw new IllegalArgumentException(String.format("Given link header %s is not RFC-8288 compliant!", element));
}
}

View File

@@ -79,7 +79,7 @@ public class Links implements Iterable<Link> {
}
/**
* Creates a {@link Links} instance from the given RFC5988-compatible link format.
* Creates a {@link Links} instance from the given RFC-8288-compatible link format.
*
* @param source a comma separated list of {@link Link} representations.
* @return the {@link Links} represented by the given {@link String}.
@@ -91,7 +91,7 @@ public class Links implements Iterable<Link> {
}
/**
* Creates a {@link Links} instance from the given RFC5988-compatible link format.
* Creates a {@link Links} instance from the given RFC-8288-compatible link format.
*
* @param source a comma separated list of {@link Link} representations.
* @return the {@link Links} represented by the given {@link String}.