Class HalLinkDiscoverer
java.lang.Object
org.springframework.hateoas.client.JsonPathLinkDiscoverer
org.springframework.hateoas.mediatype.hal.HalLinkDiscoverer
- All Implemented Interfaces:
LinkDiscoverer
,org.springframework.plugin.core.Plugin<MediaType>
- Direct Known Subclasses:
HalFormsLinkDiscoverer
LinkDiscoverer
implementation based on HAL link structure.- Author:
- Oliver Gierke, Greg Turnquist
-
Constructor Summary
ModifierConstructorDescriptionConstructor forMediaTypes.HAL_JSON
.protected
HalLinkDiscoverer
(MediaType... mediaTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected Link
extractLink
(Object element, LinkRelation rel) Callback for eachLinkDiscoverer
to extract relevant attributes and generate aLink
.Methods inherited from class org.springframework.hateoas.client.JsonPathLinkDiscoverer
findLinksWithRel, findLinksWithRel, findLinkWithRel, findLinkWithRel, supports
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 Details
-
HalLinkDiscoverer
public HalLinkDiscoverer()Constructor forMediaTypes.HAL_JSON
. -
HalLinkDiscoverer
-
-
Method Details
-
extractLink
Description copied from class:JsonPathLinkDiscoverer
Callback for eachLinkDiscoverer
to extract relevant attributes and generate aLink
.- Overrides:
extractLink
in classJsonPathLinkDiscoverer
- Returns:
- link
-