Class AwsS3ServiceClientImpl
- java.lang.Object
-
- com.mongodb.stitch.android.services.aws.s3.internal.AwsS3ServiceClientImpl
-
- All Implemented Interfaces:
AwsS3ServiceClient
@Deprecated public final class AwsS3ServiceClientImpl extends Object implements AwsS3ServiceClient
Deprecated.use AwsServiceClient instead.
-
-
Field Summary
-
Fields inherited from interface com.mongodb.stitch.android.services.aws.s3.AwsS3ServiceClient
factory
-
-
Constructor Summary
Constructors Constructor Description AwsS3ServiceClientImpl(CoreAwsS3ServiceClient client, TaskDispatcher dispatcher)
Deprecated.
-
Method Summary
Modifier and Type Method Description Task<AwsS3PutObjectResult>
putObject(String bucket, String key, String acl, String contentType, byte[] body)
Deprecated.Puts an object.Task<AwsS3PutObjectResult>
putObject(String bucket, String key, String acl, String contentType, InputStream body)
Deprecated.Puts an object.Task<AwsS3PutObjectResult>
putObject(String bucket, String key, String acl, String contentType, String body)
Deprecated.Puts an object.Task<AwsS3PutObjectResult>
putObject(String bucket, String key, String acl, String contentType, Binary body)
Deprecated.Puts an object.Task<AwsS3SignPolicyResult>
signPolicy(String bucket, String key, String acl, String contentType)
Deprecated.Signs an AWS S3 security policy for a future put object request.
-
-
-
Constructor Detail
-
AwsS3ServiceClientImpl
public AwsS3ServiceClientImpl(CoreAwsS3ServiceClient client, TaskDispatcher dispatcher)
Deprecated.
-
-
Method Detail
-
putObject
public Task<AwsS3PutObjectResult> putObject(@NonNull String bucket, @NonNull String key, @NonNull String acl, @NonNull String contentType, @NonNull String body)
Deprecated.Puts an object.- Specified by:
putObject
in interfaceAwsS3ServiceClient
- Parameters:
bucket
- the bucket to put the object in.key
- the key (or name) of the object.acl
- the ACL to apply to the object (e.g. private).contentType
- the content type of the object (e.g. application/json).body
- the body of the object.- Returns:
- the result of the put which contains the location of the object.
-
putObject
public Task<AwsS3PutObjectResult> putObject(@NonNull String bucket, @NonNull String key, @NonNull String acl, @NonNull String contentType, @NonNull Binary body)
Deprecated.Puts an object.- Specified by:
putObject
in interfaceAwsS3ServiceClient
- Parameters:
bucket
- the bucket to put the object in.key
- the key (or name) of the object.acl
- the ACL to apply to the object (e.g. private).contentType
- the content type of the object (e.g. application/json).body
- the body of the object.- Returns:
- the result of the put which contains the location of the object.
-
putObject
public Task<AwsS3PutObjectResult> putObject(@NonNull String bucket, @NonNull String key, @NonNull String acl, @NonNull String contentType, @NonNull byte[] body)
Deprecated.Puts an object.- Specified by:
putObject
in interfaceAwsS3ServiceClient
- Parameters:
bucket
- the bucket to put the object in.key
- the key (or name) of the object.acl
- the ACL to apply to the object (e.g. private).contentType
- the content type of the object (e.g. application/json).body
- the body of the object.- Returns:
- the result of the put which contains the location of the object.
-
putObject
public Task<AwsS3PutObjectResult> putObject(@NonNull String bucket, @NonNull String key, @NonNull String acl, @NonNull String contentType, @NonNull InputStream body)
Deprecated.Puts an object.- Specified by:
putObject
in interfaceAwsS3ServiceClient
- Parameters:
bucket
- the bucket to put the object in.key
- the key (or name) of the object.acl
- the ACL to apply to the object (e.g. private).contentType
- the content type of the object (e.g. application/json).body
- the body of the object.- Returns:
- the result of the put which contains the location of the object. The task will
have an
IOException
in the event the body cannot be read.
-
signPolicy
public Task<AwsS3SignPolicyResult> signPolicy(@NonNull String bucket, @NonNull String key, @NonNull String acl, @NonNull String contentType)
Deprecated.Signs an AWS S3 security policy for a future put object request. This future request would be made outside of the Stitch SDK. This is typically used for large requests that are better sent directly to AWS.- Specified by:
signPolicy
in interfaceAwsS3ServiceClient
- Parameters:
bucket
- the bucket to put the future object in.key
- the key (or name) of the future object.acl
- the ACL to apply to the future object (e.g. private).contentType
- the content type of the object (e.g. application/json).- Returns:
- the signed policy details.
- See Also:
- Uploading a File to Amazon S3 Using HTTP POST
-
-