Class JsonApiLinkDiscoverer

  • All Implemented Interfaces:
    org.springframework.hateoas.client.LinkDiscoverer, org.springframework.plugin.core.Plugin<org.springframework.http.MediaType>

    public class JsonApiLinkDiscoverer
    extends java.lang.Object
    implements org.springframework.hateoas.client.LinkDiscoverer
    LinkDiscoverer implementation based on JSON:API link structure.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.hateoas.Links findLinksWithRel​(org.springframework.hateoas.LinkRelation rel, java.io.InputStream representation)  
      org.springframework.hateoas.Links findLinksWithRel​(org.springframework.hateoas.LinkRelation rel, java.lang.String representation)  
      java.util.Optional<org.springframework.hateoas.Link> findLinkWithRel​(org.springframework.hateoas.LinkRelation rel, java.io.InputStream representation)  
      java.util.Optional<org.springframework.hateoas.Link> findLinkWithRel​(org.springframework.hateoas.LinkRelation rel, java.lang.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 Detail

    • Method Detail

      • findLinkWithRel

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

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

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

        public org.springframework.hateoas.Links findLinksWithRel​(org.springframework.hateoas.LinkRelation rel,
                                                                  java.io.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>