org.jboss.resteasy.reactive.server.jackson.JacksonBasicMessageBodyReader Maven / Gradle / Ivy
package org.jboss.resteasy.reactive.server.jackson;
import java.io.IOException;
import java.io.InputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import jakarta.inject.Inject;
import jakarta.ws.rs.WebApplicationException;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.MultivaluedMap;
import org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader;
import org.jboss.resteasy.reactive.common.util.EmptyInputStream;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
public class JacksonBasicMessageBodyReader extends AbstractJsonMessageBodyReader {
protected final ObjectReader defaultReader;
@Inject
public JacksonBasicMessageBodyReader(ObjectMapper mapper) {
this.defaultReader = mapper.reader();
}
@Override
public Object readFrom(Class