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 Details

  • Method Details

    • findLinkWithRel

      public Optional<org.springframework.hateoas.Link> findLinkWithRel(org.springframework.hateoas.LinkRelation rel, String representation)
      Specified by:
      findLinkWithRel in interface org.springframework.hateoas.client.LinkDiscoverer
    • findLinkWithRel

      public Optional<org.springframework.hateoas.Link> findLinkWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation)
      Specified by:
      findLinkWithRel in interface org.springframework.hateoas.client.LinkDiscoverer
    • findLinksWithRel

      public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, String representation)
      Specified by:
      findLinksWithRel in interface org.springframework.hateoas.client.LinkDiscoverer
    • findLinksWithRel

      public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, InputStream representation)
      Specified by:
      findLinksWithRel in interface org.springframework.hateoas.client.LinkDiscoverer
    • supports

      public boolean supports(org.springframework.http.MediaType delimiter)
      Specified by:
      supports in interface org.springframework.plugin.core.Plugin<org.springframework.http.MediaType>