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 SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.hateoas.client.LinkDiscovererfindLinksWithRel, findLinksWithRel, findLinkWithRel, findLinkWithRel, findRequiredLinkWithRel, findRequiredLinkWithRel
- 
Constructor Details- 
JsonApiLinkDiscovererpublic JsonApiLinkDiscoverer()Constructor forMediaTypes.JSON_API.
 
- 
- 
Method Details- 
findLinkWithRelpublic Optional<org.springframework.hateoas.Link> findLinkWithRel(org.springframework.hateoas.LinkRelation rel, String representation) - Specified by:
- findLinkWithRelin interface- org.springframework.hateoas.client.LinkDiscoverer
 
- 
findLinkWithRelpublic Optional<org.springframework.hateoas.Link> findLinkWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation) - Specified by:
- findLinkWithRelin interface- org.springframework.hateoas.client.LinkDiscoverer
 
- 
findLinksWithRelpublic org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, String representation) - Specified by:
- findLinksWithRelin interface- org.springframework.hateoas.client.LinkDiscoverer
 
- 
findLinksWithRelpublic org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation) - Specified by:
- findLinksWithRelin interface- org.springframework.hateoas.client.LinkDiscoverer
 
- 
supportspublic boolean supports(org.springframework.http.MediaType delimiter) - Specified by:
- supportsin interface- org.springframework.plugin.core.Plugin<org.springframework.http.MediaType>
 
 
-