public class LinkCollector extends Object
| Constructor and Description |
|---|
LinkCollector(PersistentEntities entities,
SelfLinkProvider linkProvider,
Associations associationLinks)
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.hateoas.Links |
getLinksFor(Object object)
Returns all
Links for the given object. |
org.springframework.hateoas.Links |
getLinksFor(Object object,
List<org.springframework.hateoas.Link> existingLinks)
Returns all
Links for the given object and already existing Link. |
org.springframework.hateoas.Links |
getLinksForNested(Object object,
List<org.springframework.hateoas.Link> existing) |
public LinkCollector(PersistentEntities entities, SelfLinkProvider linkProvider, Associations associationLinks)
entities - must not be null.linkProvider - must not be null.associationLinks - must not be null.public org.springframework.hateoas.Links getLinksFor(Object object)
Links for the given object.object - must not be null.public org.springframework.hateoas.Links getLinksFor(Object object, List<org.springframework.hateoas.Link> existingLinks)
Links for the given object and already existing Link.object - must not be null.existingLinks - must not be null.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.