Packagecom.amazonaws
Classpublic class AmazonWebServiceResult
InheritanceAmazonWebServiceResult Inheritance Object
Implements ResponseResult, Parse
Subclasses AddPermissionResult, AmazonWebServiceErrorResult, ChangeMessageVisibilityResult, CreateQueueResult, DeleteMessageResult, DeleteQueueResult, GetMetricStatisticsResult, GetQueueAttributesResult, ListMetricsResult, ListQueuesResult, PutMetricDataResult, ReceiveMessageResult, RemovePermissionResult, SendMessageResult, SetQueueAttributesResult

Language Version : ActionScript 3.0
Product Version : Flex 4
Since : January 24. 2011
Runtime Versions : Flash Player 10.1, AIR 2.5

Main Amazon AWS response holder which is used as base class for other servise responses. It containd raw response data and requestId as mandatory data.



Public Properties
 PropertyDefined By
  rawData : Object
Gets received raw data (XML format).
AmazonWebServiceResult
Public Methods
 MethodDefined By
  
Default C'tor.
AmazonWebServiceResult
  
getRequestId():String
The AWS request ID that uniquely identifies the service request the caller made.
AmazonWebServiceResult
  
parse(data:Object = null):ResponseResult
This method parses XML response from Amazon SQS service.
AmazonWebServiceResult
  
setRequestId(requestId:String):void
The AWS request ID that uniquely identifies the service request the caller made.
AmazonWebServiceResult
  
toString():String
Returns a string representation of this object; useful for testing and debugging.
AmazonWebServiceResult
  
withRawData(rawData:Object):ResponseResult
Sets new raw data.
AmazonWebServiceResult
  
withRequestId(requestId:String):ResponseResult
The AWS request ID that uniquely identifies the service request the caller made.
AmazonWebServiceResult
Property Detail
rawDataproperty
rawData:Object

Gets received raw data (XML format).


Implementation
    public function get rawData():Object
    public function set rawData(value:Object):void
Constructor Detail
AmazonWebServiceResult()Constructor
public function AmazonWebServiceResult()

Default C'tor.

Method Detail
getRequestId()method
public function getRequestId():String

The AWS request ID that uniquely identifies the service request the caller made.

Returns
String — The AWS request ID that uniquely identifies the service request the caller made.
parse()method 
public function parse(data:Object = null):ResponseResult

This method parses XML response from Amazon SQS service. It should be OVERRIDEN by child class!

Parameters

data:Object (default = null) — raw XML data

Returns
ResponseResult — A reference to this updated object so that method calls can be chained together.

Throws
SyntaxError — if AWS namespace not available in XML response
setRequestId()method 
public function setRequestId(requestId:String):void

The AWS request ID that uniquely identifies the service request the caller made.

Parameters

requestId:String — The AWS request ID that uniquely identifies the service request the caller made.

toString()method 
public function toString():String

Returns a string representation of this object; useful for testing and debugging.

Returns
String — A string representation of this object.
withRawData()method 
public function withRawData(rawData:Object):ResponseResult

Sets new raw data.

Parameters

rawData:Object — AWS response raw data (XML format)

Returns
ResponseResult — A reference to this updated object so that method calls can be chained together.
withRequestId()method 
public function withRequestId(requestId:String):ResponseResult

The AWS request ID that uniquely identifies the service request the caller made.

Parameters

requestId:String — The AWS request ID that uniquely identifies the service request the caller made.

Returns
ResponseResult — A reference to this updated object so that method calls can be chained together.