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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.hateoas.LinksfindLinksWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation) org.springframework.hateoas.LinksfindLinksWithRel(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) booleansupports(org.springframework.http.MediaType delimiter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
findLinkWithRelin interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinkWithRel
public Optional<org.springframework.hateoas.Link> findLinkWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation) - Specified by:
findLinkWithRelin interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinksWithRel
public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, String representation) - Specified by:
findLinksWithRelin interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinksWithRel
public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation) - Specified by:
findLinksWithRelin interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
supports
public boolean supports(org.springframework.http.MediaType delimiter) - Specified by:
supportsin interfaceorg.springframework.plugin.core.Plugin<org.springframework.http.MediaType>
-