#142, #137 - CurieProvider can now return multiple curies.

Changed `getCurieInformation(…)` to receive a `Links` instance with the previously added links and is forced to return a collection of curies so that multiple ones can be resolved transparently.

Made Curie value class protected to be able to reuse it from extensions of DefaultCurieProvider. Switched to the custom HATEOAS UriTemplate instance instead of the standard Spring MVC one.

Polished JavaDoc of DefaultCurieProvider. Removed some of the deprecation warnings that were introduced by the upgrade to Jackson 2.3. Polished (read: reactivated) some test cases and slightly changed the internals of UriTemplate works. Added TemplateVariables.asList().
This commit is contained in:
Oliver Gierke
2014-01-21 13:58:01 +01:00
parent 4d9373abcb
commit 719a4b3af3
10 changed files with 318 additions and 25 deletions

View File

@@ -90,6 +90,15 @@ public class TemplateVariables implements Iterable<TemplateVariable> {
return concat(variables.variables);
}
/**
* Returns the contained {@link TemplateVariable}s as {@link List}.
*
* @return
*/
public List<TemplateVariable> asList() {
return this.variables;
}
/*
* (non-Javadoc)
* @see java.lang.Iterable#iterator()