public interface CollectionResourceMapping extends ResourceMapping
Modifier and Type | Method and Description |
---|---|
Optional<Class<?>> |
getExcerptProjection()
Returns the projection type to be used when embedding item resources into collections and related resources.
|
ResourceDescription |
getItemResourceDescription()
Returns the
ResourceDescription for the item resource. |
org.springframework.hateoas.LinkRelation |
getItemResourceRel()
Returns the relation type pointing to the item resource within a collection.
|
getDescription, getPath, getRel, isExported, isPagingResource
org.springframework.hateoas.LinkRelation getItemResourceRel()
ResourceDescription getItemResourceDescription()
ResourceDescription
for the item resource.Optional<Class<?>> getExcerptProjection()
Optional.empty()
is returned this will mean full rendering for collections and no rendering for related
resources.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.