Interface ResourceDescription

All Superinterfaces:
MessageSourceResolvable
All Known Implementing Classes:
AnnotationBasedResourceDescription, ResolvableResourceDescriptionSupport, SimpleResourceDescription, TypedResourceDescription

public interface ResourceDescription extends MessageSourceResolvable
A description of a resource. Resolvable to plain text by using a MessageSource.
Author:
Oliver Gierke
  • Method Details

    • getMessage

      String getMessage()
      Returns the description. This can be a message source code or a custom text format. Prefer resolving the ResourceDescription using a MessageSource.
      Returns:
    • isDefault

      boolean isDefault()
      Returns whether this is the default description.
      Returns:
    • getType

      MediaType getType()