org.jboss.resteasy.util

## Class MediaTypeMatcher<T>

- java.lang.Object
- - org.jboss.resteasy.util.MediaTypeMatcher<T>

-     public class MediaTypeMatcher<T>
      extends Object

  Helper class that picks an object from a MediaType map from a list of sorted acceptable MediaTypes
  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Map<MediaType,T>` | `representations`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MediaTypeMatcher()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<MediaType,T>` | `getRepresentations()`
    `T` | `match(List<MediaType> accepts)`
    `void` | `setRepresentations(Map<MediaType,T> representations)`

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

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

- - ### Field Detail

    - #### representations

          protected Map<MediaType,T> representations

  - ### Constructor Detail

    - #### MediaTypeMatcher

          public MediaTypeMatcher()

  - ### Method Detail

    - #### getRepresentations

          public Map<MediaType,T> getRepresentations()

    - #### setRepresentations

          public void setRepresentations(Map<MediaType,T> representations)

    - #### match

          public T match(List<MediaType> accepts)

Copyright © 2014. All Rights Reserved.