org.jboss.resteasy.util
Class MediaTypeMatcher<T>
java.lang.Object
org.jboss.resteasy.util.MediaTypeMatcher<T>
public class MediaTypeMatcher<T>
- extends java.lang.Object
Helper class that picks an object from a MediaType map from a list of sorted acceptable MediaTypes
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
representations
protected java.util.Map<MediaType,T> representations
MediaTypeMatcher
public MediaTypeMatcher()
getRepresentations
public java.util.Map<MediaType,T> getRepresentations()
setRepresentations
public void setRepresentations(java.util.Map<MediaType,T> representations)
match
public T match(java.util.List<MediaType> accepts)
Copyright © 2010. All Rights Reserved.