类 ProtobufHttpMessageWriter

  • 所有已实现的接口:
    HttpMessageWriter<com.google.protobuf.Message>

    public class ProtobufHttpMessageWriter
    extends EncoderHttpMessageWriter<com.google.protobuf.Message>
    HttpMessageWriter that can write a protobuf Message and adds X-Protobuf-Schema, X-Protobuf-Message headers and a delimited=true parameter is added to the content type if a flux is serialized.

    For HttpMessageReader, just use new DecoderHttpMessageReader(new ProtobufDecoder()).

    从以下版本开始:
    5.1
    作者:
    S茅bastien Deleuze
    另请参阅:
    ProtobufEncoder