Interface LinkCollector

All Known Implementing Classes:
DefaultLinkCollector

public interface LinkCollector
A service to collect all standard links that need to be added to a certain object.
Author:
Oliver Gierke
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.hateoas.Links
    Returns all Links for the given object.
    org.springframework.hateoas.Links
    getLinksFor(Object object, org.springframework.hateoas.Links existing)
    Returns all Links for the given object and already existing Link.
    org.springframework.hateoas.Links
    getLinksForNested(Object object, org.springframework.hateoas.Links existing)
     
  • Method Details

    • getLinksFor

      org.springframework.hateoas.Links getLinksFor(Object object)
      Returns all Links for the given object.
      Parameters:
      object - must not be null.
      Returns:
    • getLinksFor

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

      org.springframework.hateoas.Links getLinksForNested(Object object, org.springframework.hateoas.Links existing)