Package io.vertx.core.http

## Class MimeMapping

- java.lang.Object
- - io.vertx.core.http.MimeMapping

-     public final class MimeMapping
      extends Object

  We do our own mapping since support for mime mapping in Java is platform dependent and doesn't seem to work very well
  Author:
    Tim Fox

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `MimeMapping()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static String` | `mimeTypeForExtension​(String ext)` |
    `static String` | `mimeTypeForFilename​(String filename)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MimeMapping

          public MimeMapping()

  - ### Method Detail

    - #### mimeTypeForExtension

          public static String mimeTypeForExtension​(String ext)

      Parameters:
        `ext` - the file name extension
      Returns:
        the matching mime type for a file extension (e.g. `.mkv`) or `null`

    - #### mimeTypeForFilename

          public static String mimeTypeForFilename​(String filename)

      Parameters:
        `filename` - the file name
      Returns:
        the matching mime type for a file name or `null`, the file extension is used for lookup