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 java.lang.Object implements org.springframework.hateoas.client.LinkDiscovererLinkDiscovererimplementation based on JSON:API link structure.
-
-
Constructor Summary
Constructors Constructor Description JsonApiLinkDiscoverer()Constructor forMediaTypes.JSON_API.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.hateoas.LinksfindLinksWithRel(org.springframework.hateoas.LinkRelation rel, java.io.InputStream representation)org.springframework.hateoas.LinksfindLinksWithRel(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)booleansupports(org.springframework.http.MediaType delimiter)
-
-
-
Constructor Detail
-
JsonApiLinkDiscoverer
public JsonApiLinkDiscoverer()
Constructor forMediaTypes.JSON_API.
-
-
Method Detail
-
findLinkWithRel
public java.util.Optional<org.springframework.hateoas.Link> findLinkWithRel(org.springframework.hateoas.LinkRelation rel, java.lang.String representation)- Specified by:
findLinkWithRelin interfaceorg.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:
findLinkWithRelin interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinksWithRel
public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, java.lang.String representation)- Specified by:
findLinksWithRelin interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinksWithRel
public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, java.io.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>
-
-