• Main Page
  • Classes
  • Files
  • File List

include/AmazonServiceResponse.h

00001 /*
00002  * Copyright 2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License").
00005  * You may not use this file except in compliance with the License.
00006  * A copy of the License is located at
00007  *
00008  *  http://aws.amazon.com/apache2.0
00009  *
00010  * or in the "license" file accompanying this file. This file is distributed
00011  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
00012  * express or implied. See the License for the specific language governing
00013  * permissions and limitations under the License.
00014  */
00015 
00016 #import <Foundation/Foundation.h>
00017 #import "AmazonServiceRequest.h"
00018 #import "AmazonClientException.h"
00019 #import "AmazonServiceException.h"
00020 #import "AmazonServiceExceptionUnmarshaller.h"
00021 
00022 @interface AmazonServiceResponse : NSObject {
00023         NSInteger            httpStatusCode;
00024         NSString        *requestId;
00025         NSMutableData   *body;
00026         NSException     *exception;
00027         bool             isFinishedLoading;
00028         
00029         AmazonServiceRequest *request;
00030 }
00031 
00033 @property(nonatomic, retain) NSData* body;
00034 
00036 @property(nonatomic) NSInteger httpStatusCode;
00037 
00039 @property(nonatomic, readonly) bool isFinishedLoading;
00040 
00042 @property(nonatomic, readonly) NSException* exception;
00043 
00045 @property(nonatomic, retain)AmazonServiceRequest* request;
00046 
00048 @property(nonatomic, retain)NSString* requestId;
00049 
00051 -(void)processBody;
00052 
00053 #pragma mark NSURLConnection delegate methods
00054 
00056 -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;
00058 -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data;
00060 -(void)connectionDidFinishLoading:(NSURLConnection *)connection;
00061 
00062 @end

Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.