public static class TypedEntityLinks.ExtendedTypedEntityLinks<T> extends TypedEntityLinks<T>
TypedEntityLinks
that exposes the ability to create links to collection resources as well.TypedEntityLinks.ExtendedTypedEntityLinks<T>
Modifier and Type | Method and Description |
---|---|
Link |
linkToCollectionResource()
Creates a
Link pointing to the collection resource of the configured type. |
linkForItemResource, linkToItemResource
public Link linkToCollectionResource()
Link
pointing to the collection resource of the configured type. The relation type of the link
will be determined by the implementation class and should be defaulted to IanaLinkRelations.SELF
.type
- the entity type to point to, must not be null.Link
pointing to the collection resource exposed for the configured entity type. Will never
be null.IllegalArgumentException
- in case the given type is unknown the entity links infrastructure.Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.