org.jboss.resteasy.spi
Class ResteasyProviderFactory.MessageBodyKey<T>

java.lang.Object
  extended by org.jboss.resteasy.spi.ResteasyProviderFactory.MessageBodyKey<T>
All Implemented Interfaces:
java.lang.Comparable<ResteasyProviderFactory.MessageBodyKey<T>>, MediaTypeMap.Typed
Enclosing class:
ResteasyProviderFactory

protected static class ResteasyProviderFactory.MessageBodyKey<T>
extends java.lang.Object
implements java.lang.Comparable<ResteasyProviderFactory.MessageBodyKey<T>>, MediaTypeMap.Typed

Allow us to sort message body implementations that are more specific for their types i.e. MessageBodyWriter is less specific than MessageBodyWriter.

This helps out a lot when the desired media type is a wildcard and to weed out all the possible default mappings.


Nested Class Summary
 class ResteasyProviderFactory.MessageBodyKey.MessageBodyKeyComparator
           
 
Field Summary
 boolean isBuiltin
           
 boolean isGeneric
           
 T obj
           
 java.lang.Class readerClass
           
 java.lang.Class template
           
 
Method Summary
 int compareTo(ResteasyProviderFactory.MessageBodyKey<T> tMessageBodyKey)
           
 java.lang.Class getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readerClass

public java.lang.Class readerClass

obj

public T obj

isGeneric

public boolean isGeneric

isBuiltin

public boolean isBuiltin

template

public java.lang.Class template
Method Detail

compareTo

public int compareTo(ResteasyProviderFactory.MessageBodyKey<T> tMessageBodyKey)
Specified by:
compareTo in interface java.lang.Comparable<ResteasyProviderFactory.MessageBodyKey<T>>

getType

public java.lang.Class getType()
Specified by:
getType in interface MediaTypeMap.Typed


Copyright © 2009. All Rights Reserved.