public class LinkCollectingAssociationHandler extends Object implements SimpleAssociationHandler
SimpleAssociationHandler that will collect Links for all linkable associations.| Constructor and Description |
|---|
LinkCollectingAssociationHandler(PersistentEntities entities,
Path path,
Associations associations)
Creates a new
LinkCollectingAssociationHandler for the given PersistentEntities, Path and
Associations. |
| 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. |
LinkCollectingAssociationHandler |
nested() |
public LinkCollectingAssociationHandler(PersistentEntities entities, Path path, Associations associations)
LinkCollectingAssociationHandler for the given PersistentEntities, Path and
Associations.entities - must not be null.path - must not be null.associations - must not be null.public LinkCollectingAssociationHandler nested()
public List<org.springframework.hateoas.Link> getLinks()
Association has been traversed.public void doWithAssociation(Association<? extends PersistentProperty<?>> association)
doWithAssociation in interface SimpleAssociationHandlerCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.