org.jboss.resteasy.core
Class MediaTypeMap<T>

java.lang.Object
  extended by org.jboss.resteasy.core.MediaTypeMap<T>

public class MediaTypeMap<T>
extends java.lang.Object

efficient MediaType index of T

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
MediaTypeMap()
           
 
Method Summary
 void add(MediaType type, T obj)
           
 java.util.List<T> getPossible(MediaType accept)
          Returns a list of objects sorted based on their media type where the first in the list is the best match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaTypeMap

public MediaTypeMap()
Method Detail

add

public void add(MediaType type,
                T obj)

getPossible

public java.util.List<T> getPossible(MediaType accept)
Returns a list of objects sorted based on their media type where the first in the list is the best match

Parameters:
accept - mime to match
Returns:


Copyright © 2009. All Rights Reserved.