Class MessageBodyWriterSubSet
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.provider.MessageBodyWriterSubSet
-
@Deprecated public class MessageBodyWriterSubSet extends java.lang.ObjectDeprecated.Will be removed in next minor release.Contains a List of wrappedMessageBodyWriters.
-
-
Field Summary
Fields Modifier and Type Field Description private static MessageBodyWriterSubSetEMPTYDeprecated.private java.lang.reflect.TypegenericTypeDeprecated.The type supported by the contained message body writers, given by the type parameter of theMessageBodyWriter.private java.util.List<MessageBodyWriter>mbwsDeprecated.private java.lang.Class<?>typeDeprecated.The class supported by the contained message body writers, given by the type parameter of theMessageBodyWriter.
-
Constructor Summary
Constructors Constructor Description MessageBodyWriterSubSet(java.util.List<MessageBodyWriter> mbws, java.lang.Class<?> type, java.lang.reflect.Type genericType)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MessageBodyWriterSubSetempty()Deprecated.java.util.Collection<MediaType>getAllProducibleMediaTypes()Deprecated.returns a list of all producible media types.MessageBodyWritergetBestWriter(MediaType determinedResponseMediaType, java.lang.annotation.Annotation[] annotations, SortedMetadata<MediaType> accMediaTypes)Deprecated.Finds aMessageBodyWriterin this Set that best matches media types of the response method and of the acceptedMediaTypes.booleanisEmpty()Deprecated.Returns true, if this set is empty
-
-
-
Field Detail
-
EMPTY
private static final MessageBodyWriterSubSet EMPTY
Deprecated.
-
genericType
private final java.lang.reflect.Type genericType
Deprecated.The type supported by the contained message body writers, given by the type parameter of theMessageBodyWriter. Could benull.
-
mbws
private final java.util.List<MessageBodyWriter> mbws
Deprecated.
-
type
private final java.lang.Class<?> type
Deprecated.The class supported by the contained message body writers, given by the type parameter of theMessageBodyWriter. Could benull.
-
-
Constructor Detail
-
MessageBodyWriterSubSet
MessageBodyWriterSubSet(java.util.List<MessageBodyWriter> mbws, java.lang.Class<?> type, java.lang.reflect.Type genericType)
Deprecated.
-
-
Method Detail
-
empty
public static MessageBodyWriterSubSet empty()
Deprecated.- Returns:
- an empty
MessageBodyWriterSubSet
-
getAllProducibleMediaTypes
public java.util.Collection<MediaType> getAllProducibleMediaTypes()
Deprecated.returns a list of all producible media types.- Returns:
- a list of all producible media types. If this set is not empty,
this result is not empty. '*/*' is returned for a message
body writer with no @
Producesannotation.
-
getBestWriter
public MessageBodyWriter getBestWriter(MediaType determinedResponseMediaType, java.lang.annotation.Annotation[] annotations, SortedMetadata<MediaType> accMediaTypes)
Deprecated.Finds aMessageBodyWriterin this Set that best matches media types of the response method and of the acceptedMediaTypes.- Parameters:
determinedResponseMediaType- TheMediaTypes of the response, declared by the resource methods or given by theResponse.annotations-accMediaTypes- the accepted media types.- Returns:
- A
MessageBodyWriterthat best matches the given accepted. Returns null, if no adequateMessageBodyWritercould be found in this set.
-
isEmpty
public boolean isEmpty()
Deprecated.Returns true, if this set is empty- Returns:
- true, if this set is empty
-
-