com.jslsolucoes.jax.rs.server.ee.JsonMessageBodyReader Maven / Gradle / Ivy
package com.jslsolucoes.jax.rs.server.ee;
import java.io.IOException;
import java.io.InputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.nio.charset.Charset;
import java.util.Arrays;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.container.ResourceInfo;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyReader;
import javax.ws.rs.ext.Provider;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jslsolucoes.jax.rs.provider.se.ObjectMapper;
import com.jslsolucoes.jax.rs.server.ee.annotation.XssPolicy;
import com.jslsolucoes.jax.rs.server.ee.annotation.XssPolicyType;
@Provider
@Consumes(MediaType.APPLICATION_JSON)
public class JsonMessageBodyReader implements MessageBodyReader
© 2015 - 2025 Weber Informatics LLC | Privacy Policy