@FunctionalInterface public interface ContentTypeResolver
| Modifier and Type | Method and Description |
|---|---|
org.springframework.util.MimeType |
resolve(MessageHeaders headers)
Determine the
MimeType of a message from the given MessageHeaders. |
@Nullable
org.springframework.util.MimeType resolve(@Nullable
MessageHeaders headers)
throws org.springframework.util.InvalidMimeTypeException
MimeType of a message from the given MessageHeaders.headers - the headers to use for the resolutionMimeType, or null if none foundorg.springframework.util.InvalidMimeTypeException - if the content type is a String that cannot be parsedIllegalArgumentException - if there is a content type but its type is unknown