Class AwsS3ServiceClientImpl
- java.lang.Object
-
- com.mongodb.stitch.server.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.server.services.aws.s3.AwsS3ServiceClient
factory
-
-
Constructor Summary
Constructors Constructor Description AwsS3ServiceClientImpl(CoreAwsS3ServiceClient client)
Deprecated.
-
Method Summary
Modifier and Type Method Description AwsS3PutObjectResult
putObject(String bucket, String key, String acl, String contentType, byte[] body)
Deprecated.Puts an object.AwsS3PutObjectResult
putObject(String bucket, String key, String acl, String contentType, InputStream body)
Deprecated.Puts an object.AwsS3PutObjectResult
putObject(String bucket, String key, String acl, String contentType, String body)
Deprecated.Puts an object.AwsS3PutObjectResult
putObject(String bucket, String key, String acl, String contentType, Binary body)
Deprecated.Puts an object.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)
Deprecated.
-
-
Method Detail
-
putObject
public 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 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 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 AwsS3PutObjectResult putObject(@Nonnull String bucket, @Nonnull String key, @Nonnull String acl, @Nonnull String contentType, @Nonnull InputStream body) throws IOException
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.
- Throws:
IOException
- if the body fails to be read.
-
signPolicy
public 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
-
-