io.beanmapper.spring.web.converter.StructuredJsonMessageConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beanmapper-spring Show documentation
Show all versions of beanmapper-spring Show documentation
Spring support for the Bean Mapper
/*
* (C) 2014 42 bv (www.42.nl). All rights reserved.
*/
package io.beanmapper.spring.web.converter;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
import java.util.Set;
import io.beanmapper.spring.util.JsonUtil;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.HttpMessageNotReadableException;
import org.springframework.http.converter.HttpMessageNotWritableException;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import com.google.common.io.CharStreams;
/**
* Wraps the default Jackson2 message converter with read
* functionality that returns both the message and property
* names.
*
* @author Jeroen van Schagen
* @since Nov 25, 2015
*/
public class StructuredJsonMessageConverter implements HttpMessageConverter
© 2015 - 2025 Weber Informatics LLC | Privacy Policy