Class AbstractEntityLinks
java.lang.Object
org.springframework.hateoas.server.core.AbstractEntityLinks
- All Implemented Interfaces:
EntityLinks
,org.springframework.plugin.core.Plugin<Class<?>>
- Direct Known Subclasses:
ControllerEntityLinks
Implementation base class to delegate the higher level methods of
EntityLinks
by delegating to the more fine
grained ones to reduce the implementation effort for actual implementation classes.- Author:
- Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlinkForItemResource
(Class<?> type, Object id) Returns aLinkBuilder
able to create links to the controller managing the given entity type and id.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.server.EntityLinks
forType, forType, linkFor, linkFor, linkForItemResource, linkToCollectionResource, linkToItemResource, linkToItemResource
Methods inherited from interface org.springframework.plugin.core.Plugin
supports
-
Constructor Details
-
AbstractEntityLinks
public AbstractEntityLinks()
-
-
Method Details
-
linkForItemResource
Description copied from interface:EntityLinks
Returns aLinkBuilder
able to create links to the controller managing the given entity type and id. Implementations will know about the URI structure being used to expose item-resource URIs.- Specified by:
linkForItemResource
in interfaceEntityLinks
- Parameters:
type
- the entity type to point to, must not be null.id
- the id of the object of the handed type, must not be null.- Returns:
- the
LinkBuilder
pointing to the item resource identified by the given type and id. Will never be null.
-