Interface ResourceDescription
- All Superinterfaces:
MessageSourceResolvable
- All Known Implementing Classes:
AnnotationBasedResourceDescription
,ResolvableResourceDescriptionSupport
,SimpleResourceDescription
,TypedResourceDescription
A description of a resource. Resolvable to plain text by using a
MessageSource
.- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionReturns the description.getType()
boolean
Returns whether this is the default description.Methods inherited from interface org.springframework.context.MessageSourceResolvable
getArguments, getCodes, getDefaultMessage
-
Method Details
-
getMessage
String getMessage()Returns the description. This can be a message source code or a custom text format. Prefer resolving theResourceDescription
using aMessageSource
.- Returns:
-
isDefault
boolean isDefault()Returns whether this is the default description.- Returns:
-
getType
MediaType getType()
-