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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlinkForItemResource(Class<?> type, Object id) Returns aLinkBuilderable 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, waitMethods inherited from interface org.springframework.hateoas.server.EntityLinks
forType, forType, linkFor, linkFor, linkForItemResource, linkToCollectionResource, linkToItemResource, linkToItemResourceMethods inherited from interface org.springframework.plugin.core.Plugin
supports
-
Constructor Details
-
AbstractEntityLinks
public AbstractEntityLinks()
-
-
Method Details
-
linkForItemResource
Description copied from interface:EntityLinksReturns aLinkBuilderable 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:
linkForItemResourcein 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
LinkBuilderpointing to the item resource identified by the given type and id. Will never be null.
-