public class LinkCollectingAssociationHandler extends Object implements SimpleAssociationHandler
SimpleAssociationHandler that will collect Links for all linkable associations.| Constructor and Description |
|---|
LinkCollectingAssociationHandler(PersistentEntities entities,
Path path,
AssociationLinks associationLinks)
Creates a new
LinkCollectingAssociationHandler for the given PersistentEntities, Path and
AssociationLinks. |
| Modifier and Type | Method and Description |
|---|---|
void |
doWithAssociation(Association<? extends PersistentProperty<?>> association) |
List<org.springframework.hateoas.Link> |
getLinks()
Returns the links collected after the
Association has been traversed. |
public LinkCollectingAssociationHandler(PersistentEntities entities, Path path, AssociationLinks associationLinks)
LinkCollectingAssociationHandler for the given PersistentEntities, Path and
AssociationLinks.entities - must not be null.path - must not be null.associationLinks - must not be null.public List<org.springframework.hateoas.Link> getLinks()
Association has been traversed.public void doWithAssociation(Association<? extends PersistentProperty<?>> association)
doWithAssociation in interface SimpleAssociationHandlerCopyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.