Contains the parameters used for the putObject operation. More...
#import <S3PutObjectRequest.h>
Inherits S3AbstractPutRequest.
Public Member Functions | |
(id) | - initWithKey:inBucket: |
Initializes the request with the key and bucket name. | |
Protected Attributes | |
bool | expiresSet |
Properties | |
NSString * | cacheControl |
Can be used to specify caching behavior along the request/reply chain. | |
NSString * | contentDisposition |
Specifies presentational information for the object. | |
NSString * | contentEncoding |
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. | |
NSString * | contentMD5 |
The base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. | |
NSString * | expect |
When your application uses 100-continue, it does not send the request body until it receives an acknowledgement. | |
NSData * | data |
The that represents the object to be uploaded. | |
NSInputStream * | stream |
The stream from which to read the object to be uploaded. | |
int | expires |
Number of milliseconds before expiration. | |
NSString * | filename |
Path of file in the filesystem to be uploaded. |
Contains the parameters used for the putObject operation.
Required parameters: bucket, key.
- (NSString *) cacheControl [read, write, retain] |
Can be used to specify caching behavior along the request/reply chain.
For more information, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.
- (NSString *) contentDisposition [read, write, retain] |
Specifies presentational information for the object.
For more information, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1.
- (NSString *) contentEncoding [read, write, retain] |
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type
header field.
For more information, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11.
- (NSString *) contentMD5 [read, write, retain] |
The base64 encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864.
This header can be used as a message integrity check to verify that the data is the same \ data that was originally sent.
- (NSData *) data [read, write, retain] |
The that represents the object to be uploaded.
Use one of data
, stream
, filename
.
- (NSString *) expect [read, write, retain] |
When your application uses 100-continue, it does not send the request body until it receives an acknowledgement.
If the message is rejected based on the headers, the body of the message is not sent.
- (int) expires [read, write, assign] |
Number of milliseconds before expiration.
- (NSString *) filename [read, write, retain] |
Path of file in the filesystem to be uploaded.
The contentLength
and contentType
will be inferred.
Use one of data
, stream
, filename
.
AmazonClientException | If the file does not exist or is not readable. |
- (NSInputStream *) stream [read, write, retain] |
The stream from which to read the object to be uploaded.
Use one of data
, stream
, filename
.