Inherits from NSObject
Declared in AmazonServiceRequest.h

Tasks

  •   credentials

    Request specific credentials.

    property
  •   urlRequest

    The urlRequest object which represents this request. Use configureURLRequest to make sure all fields have

    property
  •   urlConnection

    The connection object used to make the request.

    property
  •   httpMethod

    The HTTP Method (GET, PUT, POST, DELETE) used for the request.

    property
  •   url

    The URL for the resource. This property is read-only.

    property
  •   requestTag

    Open property that enables user to distinquish various requests.

    property
  • – setDelegate:

    Sets the delegate object for the request.

  • – validate

    This method returns nil if the request object passed the validation. If not, it will return an exception. All methods inheriting this method must call [super validate] first to check if it returns any exceptions.

  • – cancel

    Cancel asynchronous operations. The thread invoked this request needs to call this method to cancel the operation. Once cancelled, it cannot be resumed. Create another request object and invoke it again. It has no effect on synchronous operations.

  • – constructResponse

    Internal helper method to create the appropriate response object for the request.

Properties

credentials

Request specific credentials.

@property (nonatomic, retain) AmazonCredentials *credentials

Discussion

Request specific credentials.

Declared In

AmazonServiceRequest.h

httpMethod

The HTTP Method (GET, PUT, POST, DELETE) used for the request.

@property (nonatomic, retain) NSString *httpMethod

Discussion

The HTTP Method (GET, PUT, POST, DELETE) used for the request.

Declared In

AmazonServiceRequest.h

requestTag

Open property that enables user to distinquish various requests.

@property (nonatomic, retain) NSString *requestTag

Discussion

Open property that enables user to distinquish various requests.

Declared In

AmazonServiceRequest.h

url

The URL for the resource. This property is read-only.

@property (nonatomic, readonly) NSURL *url

Discussion

The URL for the resource. This property is read-only.

Declared In

AmazonServiceRequest.h

urlConnection

The connection object used to make the request.

@property (nonatomic, retain) NSURLConnection *urlConnection

Discussion

The connection object used to make the request.

Declared In

AmazonServiceRequest.h

urlRequest

The urlRequest object which represents this request. Use configureURLRequest to make sure all fields have

@property (nonatomic, retain) AmazonURLRequest *urlRequest

Discussion

The urlRequest object which represents this request. Use configureURLRequest to make sure all fields have

Declared In

AmazonServiceRequest.h

Instance Methods

cancel

Cancel asynchronous operations. The thread invoked this request needs to call this method to cancel the operation. Once cancelled, it cannot be resumed. Create another request object and invoke it again. It has no effect on synchronous operations.

- (void)cancel

Discussion

Cancel asynchronous operations. The thread invoked this request needs to call this method to cancel the operation. Once cancelled, it cannot be resumed. Create another request object and invoke it again. It has no effect on synchronous operations.

Declared In

AmazonServiceRequest.h

constructResponse

Internal helper method to create the appropriate response object for the request.

- (AmazonServiceResponse *)constructResponse

Discussion

Internal helper method to create the appropriate response object for the request.

Declared In

AmazonServiceRequest.h

setDelegate:

Sets the delegate object for the request.

- (void)setDelegate:(id<AmazonServiceRequestDelegate>)delegate

Parameters

delegate

An object which implements one or more of the methods in the AmazonServiceRequestDelegate protocol.

Discussion

Sets the delegate object for the request.

In the absence of a delegate, the client method that was called with the request will return the response, occasionally processing inputs on the run loop which called the client method.

If a delegate is assigned, the request proceeds asynchronously and will send the delegate messages as the request progresses. The response will be send to the delegate in the request:didCompleteWithResponse delegate method.

Declared In

AmazonServiceRequest.h

validate

This method returns nil if the request object passed the validation. If not, it will return an exception. All methods inheriting this method must call [super validate] first to check if it returns any exceptions.

- (AmazonClientException *)validate

Discussion

This method returns nil if the request object passed the validation. If not, it will return an exception. All methods inheriting this method must call [super validate] first to check if it returns any exceptions.

Declared In

AmazonServiceRequest.h