Interface MessageBodyReader
-
- All Known Implementing Classes:
SingletonProvider
@Deprecated public interface MessageBodyReaderDeprecated.Will be removed in next minor release.Class to wrap an initializedMessageBodyReader- See Also:
MessageBodyReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<MediaType>getConsumedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.javax.ws.rs.ext.MessageBodyReader<?>getJaxRsReader()Deprecated.Returns the JAX-RSMessageBodyReader.booleanisReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.java.lang.ObjectreadFrom(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, CharacterSet characterSet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)Deprecated.booleansupportsRead(java.lang.Class<?> entityClass, java.lang.reflect.Type genericType)Deprecated.Checks, if this message body reader supports the given type (by the type parameter of theMessageBodyWriter)
-
-
-
Method Detail
-
getConsumedMimes
java.util.List<MediaType> getConsumedMimes()
Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.- Returns:
- List of produced
MediaTypes.
-
getJaxRsReader
javax.ws.rs.ext.MessageBodyReader<?> getJaxRsReader()
Deprecated.Returns the JAX-RSMessageBodyReader.- Returns:
- the JAX-RS MessageBodyReader
-
isReadable
boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.- Parameters:
type-genericType-annotations-mediaType-- Returns:
- true, if the mapped message body reader could read to the given class
-
readFrom
java.lang.Object readFrom(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, CharacterSet characterSet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException, java.lang.reflect.InvocationTargetExceptionDeprecated.- Parameters:
type-genericType-annotations-mediaType-characterSet-httpHeaders-entityStream-- Returns:
- the read object
- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionjava.lang.reflect.InvocationTargetException
-
supportsRead
boolean supportsRead(java.lang.Class<?> entityClass, java.lang.reflect.Type genericType)Deprecated.Checks, if this message body reader supports the given type (by the type parameter of theMessageBodyWriter)- Parameters:
entityClass- the typegenericType- the generic type- Returns:
- true, if this MessageBodyReader supports the given type, false, if not.
-
-