Package org.cdlib.mrt.s3v2.action
Class GetObjectMeta
java.lang.Object
org.cdlib.mrt.s3v2.action.GetObjectMeta
Before running this Java V2 code example, set up your development
environment, including your credentials.
For more information, see the following documentation topic:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addProp
(Properties prop, String key, String value) protected static void
dumpHeadMapResponse
(software.amazon.awssdk.services.s3.model.HeadObjectResponse headResponse) static software.amazon.awssdk.services.s3.model.HeadObjectResponse
getHeadResponse
(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String keyName) Lists the tags associated with an Amazon S3 object.static Properties
getObjectMeta
(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String key) static software.amazon.awssdk.services.s3.model.StorageClass
getStorageClass
(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String key) static void
static void
-
Field Details
-
s3Client
protected software.amazon.awssdk.services.s3.S3Client s3Client
-
-
Constructor Details
-
GetObjectMeta
public GetObjectMeta(software.amazon.awssdk.services.s3.S3Client s3Client)
-
-
Method Details
-
main_5001
-
main_9501
-
getHeadResponse
public static software.amazon.awssdk.services.s3.model.HeadObjectResponse getHeadResponse(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String keyName) throws org.cdlib.mrt.utility.TException Lists the tags associated with an Amazon S3 object.- Parameters:
s3
- the S3Client object used to interact with the Amazon S3 servicebucketName
- the name of the S3 bucket that contains the objectkeyName
- the key (name) of the S3 object- Throws:
org.cdlib.mrt.utility.TException
-
getObjectMeta
public static Properties getObjectMeta(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String key) -
dumpHeadMapResponse
protected static void dumpHeadMapResponse(software.amazon.awssdk.services.s3.model.HeadObjectResponse headResponse) -
addProp
-
getStorageClass
-