Class JsonApiLinkDiscoverer
java.lang.Object
com.toedter.spring.hateoas.jsonapi.JsonApiLinkDiscoverer
- All Implemented Interfaces:
org.springframework.hateoas.client.LinkDiscoverer
,org.springframework.plugin.core.Plugin<org.springframework.http.MediaType>
public class JsonApiLinkDiscoverer
extends Object
implements org.springframework.hateoas.client.LinkDiscoverer
LinkDiscoverer
implementation based on JSON:API link structure.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.hateoas.Links
findLinksWithRel
(org.springframework.hateoas.LinkRelation rel, InputStream representation) org.springframework.hateoas.Links
findLinksWithRel
(org.springframework.hateoas.LinkRelation rel, String representation) Optional<org.springframework.hateoas.Link>
findLinkWithRel
(org.springframework.hateoas.LinkRelation rel, InputStream representation) Optional<org.springframework.hateoas.Link>
findLinkWithRel
(org.springframework.hateoas.LinkRelation rel, String representation) boolean
supports
(org.springframework.http.MediaType delimiter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.hateoas.client.LinkDiscoverer
findLinksWithRel, findLinksWithRel, findLinkWithRel, findLinkWithRel, findRequiredLinkWithRel, findRequiredLinkWithRel
-
Constructor Details
-
JsonApiLinkDiscoverer
public JsonApiLinkDiscoverer()Constructor forMediaTypes.JSON_API
.
-
-
Method Details
-
findLinkWithRel
public Optional<org.springframework.hateoas.Link> findLinkWithRel(org.springframework.hateoas.LinkRelation rel, String representation) - Specified by:
findLinkWithRel
in interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinkWithRel
public Optional<org.springframework.hateoas.Link> findLinkWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation) - Specified by:
findLinkWithRel
in interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinksWithRel
public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, String representation) - Specified by:
findLinksWithRel
in interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinksWithRel
public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation) - Specified by:
findLinksWithRel
in interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
supports
public boolean supports(org.springframework.http.MediaType delimiter) - Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<org.springframework.http.MediaType>
-