Class ProtobufHttpMessageConverter

  • All Implemented Interfaces:
    HttpMessageConverter<com.google.protobuf.Message>

    public class ProtobufHttpMessageConverter
    extends AbstractHttpMessageConverter<com.google.protobuf.Message>
    An HttpMessageConverter that reads and writes Messages using Google Protocol Buffers.

    By default, it supports "application/x-protobuf", "text/plain", "application/json", "application/xml", while also writing "text/html".

    To generate Message Java classes, you need to install the protoc binary.

    Requires Protobuf 2.6 and Protobuf Java Format 1.4, as of Spring 4.3.

    Since:
    4.1
    Author:
    Alex Antonov, Brian Clozel, Juergen Hoeller