public interface ContentTypeResolver
| Modifier and Type | Method and Description |
|---|---|
MimeType |
resolve(MessageHeaders headers)
Determine the
MimeType of a message from the given MessageHeaders. |
MimeType resolve(MessageHeaders headers) throws InvalidMimeTypeException
MimeType of a message from the given MessageHeaders.headers - the headers to use for the resolutionMimeType, or null if none foundInvalidMimeTypeException - if the content type is a String that cannot be parsedjava.lang.IllegalArgumentException - if there is a content type but its type is unknown