Package: org.grails.web.mime

## [Groovy] Class DefaultMimeTypeResolver

- org.grails.web.mime.DefaultMimeTypeResolver

- All Implemented Interfaces and Traits:
    MimeTypeResolver

      @groovy.transform.CompileStatic
      class DefaultMimeTypeResolver
      extends java.lang.Object

  Resolves the MimeType instance for a request

  Authors:
    Graeme Rocher
  Since:
    2.3

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `MimeType` | `resolveRequestMimeType(GrailsWebRequest webRequest = GrailsWebRequest.lookup()` Resolve the MimeType to be used for the request, typically established from the CONTENT_TYPE header
    `` | `MimeType` | `resolveResponseMimeType(GrailsWebRequest webRequest = GrailsWebRequest.lookup()` Resolve the MimeType to be used for the response, typically established from the ACCEPT header

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Method Detail

    - #### @java.lang.Override MimeType resolveRequestMimeType(GrailsWebRequest webRequest = GrailsWebRequest.lookup()

      Resolve the MimeType to be used for the request, typically established from the CONTENT_TYPE header

      Returns:
        the MimeType
      Since:
        2.3

    - #### @java.lang.Override MimeType resolveResponseMimeType(GrailsWebRequest webRequest = GrailsWebRequest.lookup()

      Resolve the MimeType to be used for the response, typically established from the ACCEPT header

      Returns:
        the MimeType
      Since:
        2.3