org.springframework.messaging.converter

## Interface ContentTypeResolver

- All Known Implementing Classes:
    DefaultContentTypeResolver

      public interface ContentTypeResolver

  Resolve the content type for a message.
  Since:
    4.0
  Author:
    Rossen Stoyanchev

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `MimeType` | `resolve(MessageHeaders headers)` Determine the `MimeType` of a message from the given MessageHeaders.

- - ### Method Detail

    - #### resolve

          MimeType resolve(MessageHeaders headers)

      Determine the `MimeType` of a message from the given MessageHeaders.
      Parameters:
        `headers` - the headers to use for the resolution
      Returns:
        the resolved `MimeType` of `null` if none found
      Throws:
        `InvalidMimeTypeException` - if the content type is a String that cannot be parsed
        `IllegalArgumentException` - if there is a content type but its type is unknown