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 TypeMethodDescriptionorg.springframework.hateoas.LinksgetLinksFor(Object object) Returns allLinksfor the given object.org.springframework.hateoas.LinksgetLinksFor(Object object, org.springframework.hateoas.Links existing) Returns allLinksfor the given object and already existingLink.org.springframework.hateoas.LinksgetLinksForNested(Object object, org.springframework.hateoas.Links existing)
-
Method Details
-
getLinksFor
Returns allLinksfor the given object.- Parameters:
object- must not be null.- Returns:
-
getLinksFor
org.springframework.hateoas.Links getLinksFor(Object object, org.springframework.hateoas.Links existing) Returns allLinksfor the given object and already existingLink.- 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)
-