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
ConstructorsModifierConstructorDescriptionConstructor forMediaTypes.HAL_JSON.protectedHalLinkDiscoverer(MediaType... mediaTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected LinkextractLink(Object element, LinkRelation rel) Callback for eachLinkDiscovererto extract relevant attributes and generate aLink.Methods inherited from class org.springframework.hateoas.client.JsonPathLinkDiscoverer
findLinksWithRel, findLinksWithRel, findLinkWithRel, findLinkWithRel, supportsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:JsonPathLinkDiscovererCallback for eachLinkDiscovererto extract relevant attributes and generate aLink.- Overrides:
extractLinkin classJsonPathLinkDiscoverer- Returns:
- link
-