NAME
Amazon::SimpleDB::Response - a class representing a generic response from the SimpleDB service.
DESCRIPTION
This is code is in the early stages of development. Do not consider it stable. Feedback and patches welcome.
This is a generic response class for the results of any request that does not require special handling. The class is the base class to specialized response classes such as Amazon::ErrorResponse and Amazon::QueryResponse.
METHODS
Amazon::SimpleDB::Response->new($args)
Constructs an appropriate SimpleDB response object based on the HTTP::Response object provided. This method takes a required HASHREF with two required keys:
- http_response
-
A HTTP::Response object or subclass this response from a request to the service.
- account
-
A reference to the Amazon::SimpleDB account object this response is associated to.
$res->type
A string defining the response type that is determined by the root element of the XML document that was returned.
$res->http_response
Returns the HTTP::Response object used to construct this response object.
$res->http_status
Returns the HTTP status code for the underlying response.
$res->content
The parsed XML contents of the response.
$res->request_id
$res->box_usage
$res->is_success
$res->is_error
SEE ALSO
Amazon::SimpleDB::ErrorResponse, Amazon::SimpleDB::GetAttributesResponse, Amazon::SimpleDB::ListDomainsResponse, Amazon::SimpleDB::QueryResponse
AUTHOR & COPYRIGHT
Please see the Amazon::SimpleDB manpage for author, copyright, and license information.