|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.core.JsonPathLinkDiscoverer
public class JsonPathLinkDiscoverer
LinkDiscoverer that uses JsonPath to find links inside a representation.
| Constructor Summary | |
|---|---|
JsonPathLinkDiscoverer(String pathTemplate)
Creates a new JsonPathLinkDiscoverer using the given path template. |
|
| Method Summary | |
|---|---|
List<Link> |
findLinksWithRel(String rel,
InputStream representation)
Returns all links with the given relation type found in the given InputStream representation. |
List<Link> |
findLinksWithRel(String rel,
String representation)
Returns all links with the given relation type found in the given String representation. |
Link |
findLinkWithRel(String rel,
InputStream representation)
Finds a single link with the given relation type in the given InputStream representation. |
Link |
findLinkWithRel(String rel,
String representation)
Finds a single link with the given relation type in the given String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonPathLinkDiscoverer(String pathTemplate)
JsonPathLinkDiscoverer using the given path template. The template has to contain a single
%s placeholder which will be replaced by the relation type.
pathTemplate - must not be null or empty and contain a single placeholder.| Method Detail |
|---|
public Link findLinkWithRel(String rel,
String representation)
LinkDiscovererString representation.
findLinkWithRel in interface LinkDiscovererrel - must not be null or empty.representation - must not be null or empty.
public Link findLinkWithRel(String rel,
InputStream representation)
LinkDiscovererInputStream representation.
findLinkWithRel in interface LinkDiscovererrel - must not be null or empty.representation - must not be null or empty.
public List<Link> findLinksWithRel(String rel,
String representation)
LinkDiscovererString representation.
findLinksWithRel in interface LinkDiscovererrel - must not be null or empty.representation - must not be null or empty.
public List<Link> findLinksWithRel(String rel,
InputStream representation)
LinkDiscovererInputStream representation.
findLinksWithRel in interface LinkDiscovererrel - must not be null or empty.representation - must not be null or empty.
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||