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.LinkDiscoverer
LinkDiscoverer
implementation 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.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)
-
-
-
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:
findLinkWithRel
in 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:
findLinkWithRel
in interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinksWithRel
public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, java.lang.String representation)
- Specified by:
findLinksWithRel
in interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
findLinksWithRel
public org.springframework.hateoas.Links findLinksWithRel(org.springframework.hateoas.LinkRelation rel, java.io.InputStream representation)
- Specified by:
findLinksWithRel
in interfaceorg.springframework.hateoas.client.LinkDiscoverer
-
supports
public boolean supports(org.springframework.http.MediaType delimiter)
- Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<org.springframework.http.MediaType>
-
-