public class UberLinkDiscoverer extends Object implements LinkDiscoverer
Modifier and Type | Method and Description |
---|---|
Links |
findLinksWithRel(LinkRelation rel,
InputStream representation)
Returns all links with the given
LinkRelation found in the given InputStream representation. |
Links |
findLinksWithRel(LinkRelation rel,
String representation)
Returns all links with the given
LinkRelation found in the given String representation. |
Optional<Link> |
findLinkWithRel(LinkRelation rel,
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. |
boolean |
supports(MediaType delimiter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findLinksWithRel, findLinksWithRel, findLinkWithRel, findLinkWithRel, findRequiredLinkWithRel, findRequiredLinkWithRel
public Optional<Link> findLinkWithRel(LinkRelation rel, String representation)
LinkDiscoverer
LinkRelation
in the given String
representation.findLinkWithRel
in interface LinkDiscoverer
rel
- must not be null.representation
- must not be null.Optional.empty()
if none was found.public Optional<Link> findLinkWithRel(LinkRelation rel, InputStream representation)
LinkDiscoverer
LinkRelation
in the given InputStream
representation.findLinkWithRel
in interface LinkDiscoverer
rel
- 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 rel, String representation)
LinkDiscoverer
LinkRelation
found in the given String
representation.findLinksWithRel
in interface LinkDiscoverer
rel
- must not be null.representation
- must not be null.public Links findLinksWithRel(LinkRelation rel, InputStream representation)
LinkDiscoverer
LinkRelation
found in the given InputStream
representation.findLinksWithRel
in interface LinkDiscoverer
rel
- must not be null.representation
- must not be null.Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.