Class DefaultLinkCollector

java.lang.Object
org.springframework.data.rest.webmvc.mapping.DefaultLinkCollector
All Implemented Interfaces:
LinkCollector

public class DefaultLinkCollector extends Object implements LinkCollector
A service to collect all standard links that need to be added to a certain object.
Since:
3.6
Author:
Oliver Drotbohm
  • Constructor Details

  • Method Details

    • getLinksFor

      public org.springframework.hateoas.Links getLinksFor(Object object)
      Returns all Links for the given object.
      Specified by:
      getLinksFor in interface LinkCollector
      Parameters:
      object - must not be null.
      Returns:
    • getLinksFor

      public org.springframework.hateoas.Links getLinksFor(Object object, org.springframework.hateoas.Links existingLinks)
      Returns all Links for the given object and already existing Link.
      Specified by:
      getLinksFor in interface LinkCollector
      Parameters:
      object - must not be null.
      existingLinks - must not be null.
      Returns:
    • getLinksForNested

      public org.springframework.hateoas.Links getLinksForNested(Object object, org.springframework.hateoas.Links existing)
      Specified by:
      getLinksForNested in interface LinkCollector