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 $
  • Field Details

    • representations

      protected Map<javax.ws.rs.core.MediaType,T> representations
  • Constructor Details

    • MediaTypeMatcher

      public MediaTypeMatcher()
  • Method Details

    • getRepresentations

      public Map<javax.ws.rs.core.MediaType,T> getRepresentations()
    • setRepresentations

      public void setRepresentations(Map<javax.ws.rs.core.MediaType,T> representations)
    • match

      public T match(List<javax.ws.rs.core.MediaType> accepts)