Package org.jboss.resteasy.core

## Class AcceptHeaderByFileSuffixFilter

- java.lang.Object
- - org.jboss.resteasy.core.AcceptHeaderByFileSuffixFilter

- All Implemented Interfaces:
    `javax.ws.rs.container.ContainerRequestFilter`

      @Provider
      @PreMatching
      public class AcceptHeaderByFileSuffixFilter
      extends Object
      implements javax.ws.rs.container.ContainerRequestFilter

  Modifies Accept and Accept-Language headers by looking at path file suffix i.e. .xml means Accept application/xml

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `filter​(javax.ws.rs.container.ContainerRequestContext requestContext)` |
    `void` | `setLanguageMappings​(Map<String,​String> languageMappings)` |
    `void` | `setMediaTypeMappings​(Map<String,​javax.ws.rs.core.MediaType> mediaTypeMappings)` |

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

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

- - ### Constructor Detail

    - #### AcceptHeaderByFileSuffixFilter

          public AcceptHeaderByFileSuffixFilter()

  - ### Method Detail

    - #### setMediaTypeMappings

          public void setMediaTypeMappings​(Map<String,​javax.ws.rs.core.MediaType> mediaTypeMappings)

    - #### setLanguageMappings

          public void setLanguageMappings​(Map<String,​String> languageMappings)

    - #### filter

          public void filter​(javax.ws.rs.container.ContainerRequestContext requestContext)
                      throws IOException

      Specified by:
        `filter` in interface `javax.ws.rs.container.ContainerRequestFilter`
      Throws:
        `IOException`