• Main Page
  • Classes
  • Files
  • File List

include/S3/S3Response.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 <objc/runtime.h>
00018 #import "../AmazonServiceResponse.h"
00019 #import "S3ErrorResponseHandler.h";
00020 #import "S3Constants.h"
00021 #import "S3Request.h"
00022 
00023 
00025 @interface S3Response : AmazonServiceResponse {
00026         int             contentLength;
00027         NSString        *connectionState;
00028         NSDate          *date;
00029         NSString        *etag;
00030         NSString        *server;
00031         bool            deleteMarker;
00032         NSString        *id2;
00033         NSString        *versionId;
00034 
00035         NSDateFormatter *dateFormatter;
00036 
00037 }
00038 
00040 @property(nonatomic, retain) NSString*  connectionState;
00041 
00046 @property(nonatomic, retain) NSString*  etag;
00047 
00049 @property(nonatomic, retain) NSString*  server;
00050 
00052 @property(nonatomic, retain) NSString*  id2;
00053 
00058 @property(nonatomic, retain) NSString*  versionId;
00059 
00061 @property(nonatomic, retain) NSDate*    date;
00062 
00064 @property(nonatomic) bool deleteMarker;
00065 
00067 @property(nonatomic) int contentLength;
00068 
00070 -(void)setValue:(id)value forHTTPHeaderField:(NSString *)header;
00071 
00073 -(NSDate *)parseDateHeader:(NSString *)dateString;
00074 
00076 +(NSString *)getTypeOfPropertyNamed:(NSString *)propertyName;
00077 
00078 @end

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