category Zend
package Zend_Service_Amazon
subpackage Ec2
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Creates a new high-level EC2 response object

__construct(\Zend_Http_Response $httpResponse) 

Parameters

$httpResponse

\Zend_Http_Response

the HTTP response.

Gets the document object for this response

getDocument() : \DOMDocument

Returns

\DOMDocumentthe DOM Document for this response.

Return the current set XML Namespace.

getNamespace() : string

Returns

string

Gets the XPath object for this response

getXPath() : \DOMXPath

Returns

\DOMXPaththe XPath object for response.

Set a new XML Namespace

setNamespace(string $namespace) 

Parameters

$namespace

string

 Properties

 

XML namespace used for EC2 responses.

$_xmlNamespace 

Default

'http://ec2.amazonaws.com/doc/2009-04-04/'
 

The response document object

$_document : \DOMDocument

Default

null
 

Last error code

$_errorCode : integer

Default

0
 

Last error message

$_errorMessage : string

Default

''
 

The original HTTP response

$_httpResponse : \Zend_Http_Response

Default

null

This contains the response body and headers.

 

The response XPath

$_xpath : \DOMXPath

Default

null