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

public abstract class AbstractEntityLinks extends Object implements EntityLinks
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 Details

    • AbstractEntityLinks

      public AbstractEntityLinks()
  • Method Details

    • linkForItemResource

      public LinkBuilder linkForItemResource(Class<?> type, Object id)
      Description copied from interface: EntityLinks
      Returns a LinkBuilder 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 interface EntityLinks
      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.