Class TypedEntityLinks.ExtendedTypedEntityLinks<T>
java.lang.Object
org.springframework.hateoas.server.TypedEntityLinks<T>
org.springframework.hateoas.server.TypedEntityLinks.ExtendedTypedEntityLinks<T>
- Enclosing class:
- TypedEntityLinks<T>
Extension of
TypedEntityLinks that exposes the ability to create links to collection resources as well.- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.hateoas.server.TypedEntityLinks
TypedEntityLinks.ExtendedTypedEntityLinks<T> -
Method Summary
Modifier and TypeMethodDescriptionCreates aLinkpointing to the collection resource of the configured type.Methods inherited from class org.springframework.hateoas.server.TypedEntityLinks
linkForItemResource, linkToItemResource
-
Method Details
-
linkToCollectionResource
Creates aLinkpointing 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 toIanaLinkRelations.SELF.- Returns:
- the
Linkpointing to the collection resource exposed for the configured entity type. Will never be null. - Throws:
IllegalArgumentException- in case the given type is unknown the entity links infrastructure.
-