com.sun.jersey.spi.container
Interface ExtendedMessageBodyWorkers

All Superinterfaces:
javax.ws.rs.ext.MessageBodyWorkers

public interface ExtendedMessageBodyWorkers
extends javax.ws.rs.ext.MessageBodyWorkers


Method Summary
<T> java.util.List<javax.ws.rs.core.MediaType>
getMessageBodyWriterMediaTypes(java.lang.Class<T> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
          Get the list of media types supported for a Java type.
 
Methods inherited from interface javax.ws.rs.ext.MessageBodyWorkers
getMessageBodyReader, getMessageBodyWriter
 

Method Detail

getMessageBodyWriterMediaTypes

<T> java.util.List<javax.ws.rs.core.MediaType> getMessageBodyWriterMediaTypes(java.lang.Class<T> type,
                                                                              java.lang.reflect.Type genericType,
                                                                              java.lang.annotation.Annotation[] annotations)
Get the list of media types supported for a Java type.

Parameters:
type - the class of object that is to be written.
genericType - the type of object to be written. E.g. if the message body is to be produced from a field, this will be the declared type of the field as returned by Field.getGenericType.
annotations - an array of the annotations on the declaration of the artifact that will be written. E.g. if the message body is to be produced from a field, this will be the annotations on that field returned by Field.getDeclaredAnnotations.
Returns:
the list of supported media types, the list is ordered as follows: a/b < a/* < \*\/*