Class ProtoMessageResponseParser<ResponseT extends com.google.protobuf.Message>

    • Method Detail

      • parse

        public ResponseT parse​(InputStream httpContent,
                               com.google.protobuf.TypeRegistry registry)
        Description copied from interface: HttpResponseParser
        Parse the http body content JSON stream into the MessageFormatT.
        Specified by:
        parse in interface HttpResponseParser<ResponseT extends com.google.protobuf.Message>
        Parameters:
        httpContent - the body of an HTTP response, represented as an InputStream
        registry - type registry with Any fields descriptors
      • parse

        public ResponseT parse​(Reader httpContent,
                               com.google.protobuf.TypeRegistry registry)
        Description copied from interface: HttpResponseParser
        Parse the http body content JSON reader into the MessageFormatT.
        Specified by:
        parse in interface HttpResponseParser<ResponseT extends com.google.protobuf.Message>
        Parameters:
        httpContent - the body of an HTTP response, represented as a Reader
        registry - type registry with Any fields descriptors