public class CollectionJsonLinkDiscoverer extends JsonPathLinkDiscoverer
LinkDiscoverer implementation based on JSON Collection link structure. NOTE: Since links can appear in two
different places in a Collection+JSON document, this discoverer uses two.| Constructor and Description |
|---|
CollectionJsonLinkDiscoverer() |
| Modifier and Type | Method and Description |
|---|---|
Links |
findLinksWithRel(LinkRelation relation,
InputStream representation)
Returns all links with the given
LinkRelation found in the given InputStream representation. |
Links |
findLinksWithRel(LinkRelation relation,
String representation)
Returns all links with the given
LinkRelation found in the given String representation. |
Optional<Link> |
findLinkWithRel(LinkRelation relation,
InputStream representation)
Finds a single link with the given
LinkRelation in the given InputStream representation. |
Optional<Link> |
findLinkWithRel(LinkRelation relation,
String representation)
Finds a single link with the given
LinkRelation in the given String representation. |
extractLink, supportsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindLinksWithRel, findLinksWithRel, findLinkWithRel, findLinkWithRel, findRequiredLinkWithRel, findRequiredLinkWithRelpublic Optional<Link> findLinkWithRel(LinkRelation relation, String representation)
LinkDiscovererLinkRelation in the given String representation.findLinkWithRel in interface LinkDiscovererfindLinkWithRel in class JsonPathLinkDiscovererrelation - must not be null.representation - must not be null.Optional.empty() if none was found.public Optional<Link> findLinkWithRel(LinkRelation relation, InputStream representation)
LinkDiscovererLinkRelation in the given InputStream representation.findLinkWithRel in interface LinkDiscovererfindLinkWithRel in class JsonPathLinkDiscovererrelation - must not be null.representation - must not be null.Link with the given LinkRelation found, or Optional.empty() if none was
found.public Links findLinksWithRel(LinkRelation relation, String representation)
LinkDiscovererLinkRelation found in the given String representation.findLinksWithRel in interface LinkDiscovererfindLinksWithRel in class JsonPathLinkDiscovererrelation - must not be null.representation - must not be null.public Links findLinksWithRel(LinkRelation relation, InputStream representation)
LinkDiscovererLinkRelation found in the given InputStream representation.findLinksWithRel in interface LinkDiscovererfindLinksWithRel in class JsonPathLinkDiscovererrelation - must not be null.representation - must not be null.Copyright © 2011–2022 Pivotal, Inc.. All rights reserved.