Public Member Functions | Static Public Member Functions | Protected Attributes | Properties

S3Response Class Reference

response headers that are common to Amazon S3 responses. More...

#import <S3Response.h>

Inherited by S3CopyObjectResponse, S3CreateBucketResponse, S3DeleteBucketResponse, S3DeleteObjectResponse, S3GetACLResponse, S3GetObjectResponse, S3ListBucketsResponse, S3ListObjectsResponse, S3PutObjectResponse, and S3SetACLResponse.

List of all members.

Public Member Functions

(void) - setValue:forHTTPHeaderField:
 Sets the value in the response corresponding to the HTTP header.
(NSDate *) - parseDateHeader:
 Parses a date from an S3 response.

Static Public Member Functions

(NSString *) + getTypeOfPropertyNamed:
 Determines the type of a property in a response.

Protected Attributes

NSDateFormatter * dateFormatter

Properties

NSString * connectionState
 Specfies whether the connection to the server is open or closed.
NSString * etag
 The entity tag is an MD5 hash of the object that you can use to do conditional GET operations using the If-Modified request tag with the GET request operation.
NSString * server
 The name of the server that created the response.
NSString * id2
 A special token that helps AWS troubleshoot problems.
NSString * versionId
 The version of the object.
NSDate * date
 The date and time Amazon S3 responded.
bool deleteMarker
 Specifies whether the object returned was (true) or was not (false) a Delete Marker.
int contentLength
 The length in bytes of the body in the response.

Detailed Description

response headers that are common to Amazon S3 responses.


Member Function Documentation

+ (NSString * S3Response.)getTypeOfPropertyNamed: (NSString *)  propertyName  

Determines the type of a property in a response.

- (NSDate * S3Response.)parseDateHeader: (NSString *)  dateString  

Parses a date from an S3 response.


Property Documentation

- (NSString *) connectionState [read, write, retain]

Specfies whether the connection to the server is open or closed.

- (int) contentLength [read, write, assign]

The length in bytes of the body in the response.

- (NSDate *) date [read, write, retain]

The date and time Amazon S3 responded.

- (bool) deleteMarker [read, write, assign]

Specifies whether the object returned was (true) or was not (false) a Delete Marker.

- (NSString *) etag [read, write, retain]

The entity tag is an MD5 hash of the object that you can use to do conditional GET operations using the If-Modified request tag with the GET request operation.

Amazon S3 checks the object against the provided MD5 value. If they do not match, Amazon S3 returns an error. The ETag only reflects changes to the contents of an object, not its metadata.

- (NSString *) id2 [read, write, retain]

A special token that helps AWS troubleshoot problems.

- (NSString *) server [read, write, retain]

The name of the server that created the response.

- (NSString *) versionId [read, write, retain]

The version of the object.

When you enable versioning, Amazon S3 generates a random number for objects added to a bucket. The value is UTF-8 encoded and URL ready. When you PUT an object in a bucket where versioning has been suspended, the version ID is always null.


The documentation for this class was generated from the following file: