Class BatchResponse

    • Constructor Detail

      • BatchResponse

        protected BatchResponse()
        "Magic" no-argument constructor so we can reflectively make instances of this class with DefaultJsonMapper, but normal client code cannot.
      • BatchResponse

        public BatchResponse​(Integer code,
                             List<BatchHeader> headers,
                             String body)
        Creates a batch response with the given HTTP response status code, headers, and JSON body.
        Parameters:
        code - HTTP status code.
        headers - HTTP headers.
        body - JSON body.