Class ServerJacksonMessageBodyReader

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyReader<Object>, org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader<Object>

    public class ServerJacksonMessageBodyReader
    extends org.jboss.resteasy.reactive.server.jackson.JacksonBasicMessageBodyReader
    implements org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader<Object>
    • Field Summary

      • Fields inherited from class org.jboss.resteasy.reactive.server.jackson.JacksonBasicMessageBodyReader

        defaultReader
    • Constructor Detail

      • ServerJacksonMessageBodyReader

        @Inject
        public ServerJacksonMessageBodyReader​(com.fasterxml.jackson.databind.ObjectMapper mapper)
    • Method Detail

      • readFrom

        public Object readFrom​(Class<Object> type,
                               Type genericType,
                               Annotation[] annotations,
                               jakarta.ws.rs.core.MediaType mediaType,
                               jakarta.ws.rs.core.MultivaluedMap<String,​String> httpHeaders,
                               InputStream entityStream)
                        throws IOException,
                               jakarta.ws.rs.WebApplicationException
        Specified by:
        readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<Object>
        Overrides:
        readFrom in class org.jboss.resteasy.reactive.server.jackson.JacksonBasicMessageBodyReader
        Throws:
        IOException
        jakarta.ws.rs.WebApplicationException
      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<Object>
        Overrides:
        isReadable in class org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader
      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo lazyMethod,
                                  jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader<Object>
      • readFrom

        public Object readFrom​(Class<Object> type,
                               Type genericType,
                               jakarta.ws.rs.core.MediaType mediaType,
                               org.jboss.resteasy.reactive.server.spi.ServerRequestContext context)
                        throws jakarta.ws.rs.WebApplicationException,
                               IOException
        Specified by:
        readFrom in interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader<Object>
        Throws:
        jakarta.ws.rs.WebApplicationException
        IOException