AmazonServiceRequest Class Reference
| Inherits from | NSObject |
| Declared in | AmazonServiceRequest.h |
Tasks
-
credentialsRequest specific credentials.
property -
urlRequestThe urlRequest object which represents this request. Use configureURLRequest to make sure all fields have
property -
urlConnectionThe connection object used to make the request.
property -
httpMethodThe HTTP Method (GET, PUT, POST, DELETE) used for the request.
property -
urlThe URL for the resource. This property is read-only.
property -
requestTagOpen property that enables user to distinquish various requests.
property -
– setDelegate:Sets the delegate object for the request.
-
– validateThis 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.
-
– cancelCancel 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.
-
– constructResponseInternal helper method to create the appropriate response object for the request.
Properties
credentials
Request specific credentials.
@property (nonatomic, retain) AmazonCredentials *credentialsDiscussion
Request specific credentials.
Declared In
AmazonServiceRequest.hhttpMethod
The HTTP Method (GET, PUT, POST, DELETE) used for the request.
@property (nonatomic, retain) NSString *httpMethodDiscussion
The HTTP Method (GET, PUT, POST, DELETE) used for the request.
Declared In
AmazonServiceRequest.hrequestTag
Open property that enables user to distinquish various requests.
@property (nonatomic, retain) NSString *requestTagDiscussion
Open property that enables user to distinquish various requests.
Declared In
AmazonServiceRequest.hurl
The URL for the resource. This property is read-only.
@property (nonatomic, readonly) NSURL *urlDiscussion
The URL for the resource. This property is read-only.
Declared In
AmazonServiceRequest.hurlConnection
The connection object used to make the request.
@property (nonatomic, retain) NSURLConnection *urlConnectionDiscussion
The connection object used to make the request.
Declared In
AmazonServiceRequest.hurlRequest
The urlRequest object which represents this request. Use configureURLRequest to make sure all fields have
@property (nonatomic, retain) AmazonURLRequest *urlRequestDiscussion
The urlRequest object which represents this request. Use configureURLRequest to make sure all fields have
Declared In
AmazonServiceRequest.hInstance 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)cancelDiscussion
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.hconstructResponse
Internal helper method to create the appropriate response object for the request.
- (AmazonServiceResponse *)constructResponseDiscussion
Internal helper method to create the appropriate response object for the request.
Declared In
AmazonServiceRequest.hsetDelegate:
Sets the delegate object for the request.
- (void)setDelegate:(id<AmazonServiceRequestDelegate>)delegateParameters
- 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.hvalidate
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 *)validateDiscussion
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