Interface MessageBodyReader

  • All Known Implementing Classes:
    SingletonProvider

    @Deprecated
    public interface MessageBodyReader
    Deprecated.
    Will be removed in next minor release.
    Class to wrap an initialized MessageBodyReader
    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 produced MediaTypes of the wrapped MessageBodyWriter.
      javax.ws.rs.ext.MessageBodyReader<?> getJaxRsReader()
      Deprecated.
      Returns the JAX-RS MessageBodyReader.
      boolean isReadable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Deprecated.
       
      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)
      Deprecated.
       
      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 the MessageBodyWriter)
    • Method Detail

      • getConsumedMimes

        java.util.List<MediaType> getConsumedMimes()
        Deprecated.
        Returns the list of produced MediaTypes of the wrapped MessageBodyWriter.
        Returns:
        List of produced MediaTypes.
      • getJaxRsReader

        javax.ws.rs.ext.MessageBodyReader<?> getJaxRsReader()
        Deprecated.
        Returns the JAX-RS MessageBodyReader.
        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.InvocationTargetException
        Deprecated.
        Parameters:
        type -
        genericType -
        annotations -
        mediaType -
        characterSet -
        httpHeaders -
        entityStream -
        Returns:
        the read object
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException
        java.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 the MessageBodyWriter)
        Parameters:
        entityClass - the type
        genericType - the generic type
        Returns:
        true, if this MessageBodyReader supports the given type, false, if not.