MCPcopy Create free account
hub / github.com/apache/cloudberry / S3MessageParser

Method S3MessageParser

gpcontrib/gpcloud/src/s3restful_service.cpp:341–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341S3MessageParser::S3MessageParser(const Response &resp)
342 : xmlptr(NULL), message("Unknown error"), code("Unknown error code") {
343 // Compatible S3 services don't always return XML
344 if (resp.getRawData().data() == NULL) {
345 return;
346 }
347
348 xmlptr = xmlCreatePushParserCtxt(NULL, NULL, (const char *)(resp.getRawData().data()),
349 resp.getRawData().size(), "S3MessageParser.xml");
350 if (xmlptr != NULL) {
351 xmlParseChunk(xmlptr, "", 0, 1);
352 message = parseS3Tag("Message");
353 code = parseS3Tag("Code");
354 }
355}
356
357S3MessageParser::~S3MessageParser() {
358 if (xmlptr != NULL) {

Callers

nothing calls this directly

Calls 2

getRawDataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected