Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*-
* =================================LICENSE_START=================================
* IND2UCE
* %%
* Copyright (C) 2016 Fraunhofer IESE (www.iese.fraunhofer.de)
* %%
* The Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Hansastrasse 27c, 80686 Munich, Germany (further: Fraunhofer) is holder of all proprietary rights on this computer program.
* You can only use this computer program if you have closed a license agreement with Fraunhofer or you get the right to use the computer program from someone who is authorized to grant you that right.
* Any use of the computer program without a valid license is prohibited and liable to prosecution.
*
* Copyright (C) 2018 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. acting on behalf of its Fraunhofer Institute for Experimental Software Engineering (IESE)
*
* All rights reserved.
*
* Contact: [email protected]
* =================================LICENSE_END=================================
*/
package de.fraunhofer.iese.ind2uce.json;
import de.fraunhofer.iese.ind2uce.api.common.Ind2uceEntity;
import com.google.gson.Gson;
import com.google.gson.JsonIOException;
import com.google.gson.JsonParseException;
import com.google.gson.reflect.TypeToken;
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.AbstractHttpMessageConverter;
import org.springframework.http.converter.GenericHttpMessageConverter;
import org.springframework.http.converter.HttpMessageNotReadableException;
import org.springframework.http.converter.HttpMessageNotWritableException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.lang.reflect.Type;
import java.nio.charset.Charset;
// TODO: Auto-generated Javadoc
/**
* Implementation of
* {@link org.springframework.http.converter.HttpMessageConverter} that can read
* and write JSON using the
* Google Gson library's
* {@link Gson} class.
*
* This converter can be used to bind to typed beans or untyped {@code HashMap}
* s. By default, it supports {@code application/json} and
* {@code application/*+json}.
*
*
* Tested against Gson 2.3; compatible with Gson 2.0 and higher.
*
*
* @author Roy Clarkson
* @see #setSupportedMediaTypes
* @since 4.1
*/
public class GsonConverter extends AbstractHttpMessageConverter