接口 ContentTypeResolver
- 所有已知实现类:
DefaultContentTypeResolver
public interface ContentTypeResolver
Resolve the content type for a message.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
方法详细资料
resolve
MimeType resolve(MessageHeaders headers) throws InvalidMimeTypeException
Determine theMimeType
of a message from the given MessageHeaders.- 参数:
headers
- the headers to use for the resolution- 返回:
- the resolved
MimeType
, ornull
if none found - 抛出:
InvalidMimeTypeException
- if the content type is a String that cannot be parsedIllegalArgumentException
- if there is a content type but its type is unknown