com.truward.brikar.protobuf.http.json.ProtobufJsonHttpMessageConverter Maven / Gradle / Ivy
package com.truward.brikar.protobuf.http.json;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.google.protobuf.Message;
import com.truward.protobuf.jackson.ProtobufJacksonUtil;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
import org.springframework.http.converter.AbstractHttpMessageConverter;
import javax.annotation.Nonnull;
import java.io.IOException;
/**
* Spring's HTTP message converter for protocol buffer messages in JSON form.
*
* @author Alexander Shabanov
*/
public class ProtobufJsonHttpMessageConverter extends AbstractHttpMessageConverter
© 2015 - 2025 Weber Informatics LLC | Privacy Policy