Class AnnotationBasedResourceDescription

java.lang.Object
org.springframework.data.rest.core.mapping.ResolvableResourceDescriptionSupport
org.springframework.data.rest.core.mapping.AnnotationBasedResourceDescription
All Implemented Interfaces:
MessageSourceResolvable, ResourceDescription

public class AnnotationBasedResourceDescription extends ResolvableResourceDescriptionSupport
A ResourceDescription that is customized based on a Description annotation. Allows to fall back on another ResourceDescription to provide defaults.
Author:
Oliver Gierke
  • Constructor Details

  • Method Details

    • getCodes

      public String[] getCodes()
    • getMessage

      public String getMessage()
      Description copied from interface: ResourceDescription
      Returns the description. This can be a message source code or a custom text format. Prefer resolving the ResourceDescription using a MessageSource.
      Returns:
    • getType

      public MediaType getType()
      Returns:
      the mediaType
    • isDefault

      public boolean isDefault()
      Description copied from interface: ResourceDescription
      Returns whether this is the default description.
      Returns: