Documentation

XmlResponseLocationVisitor extends XmlVisitor
in package

Class used for custom AWS XML response parsing of query services

Table of Contents

Methods

after()  : mixed
Called after visiting all parameters
before()  : mixed
Called before visiting all parameters. This can be used for seeding the result of a command with default data (e.g. populating with JSON data in the response then adding to the parsed data).
visit()  : mixed
Accounts for wrapper nodes {@inheritdoc}
xmlMap()  : array<string|int, mixed>
Filter used when converting XML maps into associative arrays in service descriptions
processArray()  : mixed
Process an array
processObject()  : mixed
Process an object
processXmlAttribute()  : mixed
Process an XML attribute property
recursiveProcess()  : mixed
Recursively process a parameter while applying filters

Methods

before()

Called before visiting all parameters. This can be used for seeding the result of a command with default data (e.g. populating with JSON data in the response then adding to the parsed data).

public before(CommandInterface $command, array<string|int, mixed> &$result) : mixed
Parameters
$command : CommandInterface

Command being visited

$result : array<string|int, mixed>

Result value to update if needed (e.g. parsing XML or JSON)

xmlMap()

Filter used when converting XML maps into associative arrays in service descriptions

public static xmlMap(array<string|int, mixed> $value, string $entryName, string $keyName, string $valueName) : array<string|int, mixed>
Parameters
$value : array<string|int, mixed>

Value to filter

$entryName : string

Name of each entry

$keyName : string

Name of each key

$valueName : string

Name of each value

Return values
array<string|int, mixed>

Returns the map of the XML data

processArray()

Process an array

protected processArray(Parameter $param, mixed &$value) : mixed
Parameters
$param : Parameter

API parameter being parsed

$value : mixed

Value to process

processObject()

Process an object

protected processObject(Parameter $param, mixed &$value) : mixed
Parameters
$param : Parameter

API parameter being parsed

$value : mixed

Value to process

processXmlAttribute()

Process an XML attribute property

protected processXmlAttribute(Parameter $property, array<string|int, mixed> &$value) : mixed
Parameters
$property : Parameter

Property to process

$value : array<string|int, mixed>

Value to process and update

recursiveProcess()

Recursively process a parameter while applying filters

protected recursiveProcess(Parameter $param, mixed &$value) : mixed
Parameters
$param : Parameter

API parameter being processed

$value : mixed

Value to validate and process. The value may change during this process.


        
On this page

Search results