#314 - HalLinkDiscoverer now also works for URI rels.

Relation names can be fully qualified URIs. HalLinkDiscoverer now quotes the relation name handed into the constructor so that the expression parsing works as expected.
This commit is contained in:
Oliver Gierke
2015-03-09 23:30:24 +01:00
parent 15e2eb1f75
commit dc90d23da7
2 changed files with 17 additions and 6 deletions

View File

@@ -27,6 +27,6 @@ import org.springframework.hateoas.core.JsonPathLinkDiscoverer;
public class HalLinkDiscoverer extends JsonPathLinkDiscoverer {
public HalLinkDiscoverer() {
super("$._links..%s..href", MediaTypes.HAL_JSON);
super("$._links..['%s']..href", MediaTypes.HAL_JSON);
}
}