RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

org.jboss.resteasy.util
Class MediaTypeMatcher<T>

java.lang.Object
  extended by 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
protected  Map<javax.ws.rs.core.MediaType,T> representations
           
 
Constructor Summary
MediaTypeMatcher()
           
 
Method Summary
 Map<javax.ws.rs.core.MediaType,T> getRepresentations()
           
 T match(List<javax.ws.rs.core.MediaType> accepts)
           
 void setRepresentations(Map<javax.ws.rs.core.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<javax.ws.rs.core.MediaType,T> representations
Constructor Detail

MediaTypeMatcher

public MediaTypeMatcher()
Method Detail

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)

RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.