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.Links
getLinksFor
(Object object) Returns allLinks
for the given object.org.springframework.hateoas.Links
getLinksFor
(Object object, org.springframework.hateoas.Links existing) Returns allLinks
for the given object and already existingLink
.org.springframework.hateoas.Links
getLinksForNested
(Object object, org.springframework.hateoas.Links existing)
-
Method Details
-
getLinksFor
Returns allLinks
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 allLinks
for 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)
-