Interface ContentTypeResolver
- All Known Implementing Classes:
DefaultContentTypeResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Resolve the content type for a message.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionresolve(MessageHeaders headers) Determine theMimeTypeof a message from the given MessageHeaders.
-
Method Details
-
resolve
Determine theMimeTypeof a message from the given MessageHeaders.- Parameters:
headers- the headers to use for the resolution- Returns:
- the resolved
MimeType, ornullif none found - Throws:
InvalidMimeTypeException- if the content type is a String that cannot be parsedIllegalArgumentException- if there is a content type but its type is unknown
-