Interface ResourceMapping

All Known Subinterfaces:
CollectionResourceMapping, MethodResourceMapping, PropertyAwareResourceMapping, ResourceMetadata
All Known Implementing Classes:
SearchResourceMappings

public interface ResourceMapping
Mapping information for components to be exported as REST resources.
Author:
Oliver Gierke
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the resource's description.
    Returns the path the resource is exposed under.
    org.springframework.hateoas.LinkRelation
    Returns the relation for the resource exported.
    boolean
    Returns whether the component shall be exported at all.
    boolean
    Returns whether the resource is paging one.
  • Method Details

    • isExported

      boolean isExported()
      Returns whether the component shall be exported at all.
      Returns:
      will never be null.
    • getRel

      org.springframework.hateoas.LinkRelation getRel()
      Returns the relation for the resource exported.
      Returns:
      will never be null.
    • getPath

      Path getPath()
      Returns the path the resource is exposed under.
      Returns:
      will never be null.
    • isPagingResource

      boolean isPagingResource()
      Returns whether the resource is paging one.
      Returns:
    • getDescription

      ResourceDescription getDescription()
      Returns the resource's description.
      Returns: