public interface LinkDiscoverer extends org.springframework.plugin.core.Plugin<MediaType>
| 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. |
default Links |
findLinksWithRel(String relation,
InputStream representation)
Returns all links with the given link relation found in the given
InputStream representation. |
default Links |
findLinksWithRel(String relation,
String representation)
Returns all links with the given link relation 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 rel,
String representation)
Finds a single link with the given
LinkRelation in the given String representation. |
default Optional<Link> |
findLinkWithRel(String relation,
InputStream representation)
Finds a single link with the given relation type in the given
InputStream representation. |
default Optional<Link> |
findLinkWithRel(String rel,
String representation)
Finds a single link with the given relation type in the given
String representation. |
default Link |
findRequiredLinkWithRel(LinkRelation relation,
InputStream representation)
Finds a single link with the given relation type in the given
InputStream representation. |
default Link |
findRequiredLinkWithRel(LinkRelation relation,
String representation)
Finds a single link with the given relation in the given
String representation. |
Optional<Link> findLinkWithRel(LinkRelation rel, String representation)
LinkRelation in the given String representation.rel - must not be null.representation - must not be null.Optional.empty() if none was found.default Optional<Link> findLinkWithRel(String rel, String representation)
String representation.rel - must not be null or empty.representation - must not be null.Link with the given link relation found, or Optional.empty() if none was found.default Link findRequiredLinkWithRel(LinkRelation relation, String representation)
String representation.relation - must not be null.representation - must not be null.IllegalArgumentException - if no Link for the given LinkRelation can be found.Optional<Link> findLinkWithRel(LinkRelation relation, InputStream representation)
LinkRelation in the given InputStream representation.relation - must not be null.representation - must not be null.Link with the given LinkRelation found, or Optional.empty() if none was
found.default Optional<Link> findLinkWithRel(String relation, InputStream representation)
InputStream representation.relation - must not be null or empty.representation - must not be null.Optional.empty() if none was found.default Link findRequiredLinkWithRel(LinkRelation relation, InputStream representation)
InputStream representation.relation - must not be null or empty.representation - must not be null.IllegalArgumentException - if no Link for the given LinkRelation can be found.default Links findLinksWithRel(String relation, String representation)
String representation.relation - must not be null or empty.representation - must not be null.Links findLinksWithRel(LinkRelation relation, String representation)
LinkRelation found in the given String representation.relation - must not be null.representation - must not be null.default Links findLinksWithRel(String relation, InputStream representation)
InputStream representation.relation - must not be null or empty.representation - must not be null.Links findLinksWithRel(LinkRelation relation, InputStream representation)
LinkRelation found in the given InputStream representation.relation - must not be null.representation - must not be null.Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.