Interface MimeTypes

  • public interface MimeTypes
    A registry for mime types. Every exchange has an instance of this type available via the service. The default implementation uses the MimetypesFileTypeMap class.
    • Method Detail

      • getContentType

        String getContentType​(String name)
        Calculate the mime type for the given file.
        name - The file name to calculate the mime type for.
        The mime type for the file name.