Interface CollectionResourceMapping

All Superinterfaces:
ResourceMapping
All Known Subinterfaces:
ResourceMetadata

public interface CollectionResourceMapping extends ResourceMapping
A custom resource mapping for collection resources.
Author:
Oliver Gierke
  • Method Details

    • getItemResourceRel

      org.springframework.hateoas.LinkRelation getItemResourceRel()
      Returns the relation type pointing to the item resource within a collection.
      Returns:
    • getItemResourceDescription

      ResourceDescription getItemResourceDescription()
      Returns the ResourceDescription for the item resource.
      Returns:
    • getExcerptProjection

      Optional<Class<?>> getExcerptProjection()
      Returns the projection type to be used when embedding item resources into collections and related resources. If Optional.empty() is returned this will mean full rendering for collections and no rendering for related resources.
      Returns: