Class S3ContentType
- All Implemented Interfaces:
Comparable<S3ObjectMetadata>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(AdaptrisMessage msg, Map<String, String> meta) @NonNull StringSets the Content-Type HTTP header indicating the type of content stored in the associated object.voidsetContentType(@NonNull String contentType) Sets the Content-Type HTTP header indicating the type of content stored in the associated object.Methods inherited from class com.adaptris.aws2.s3.meta.S3ObjectMetadata
compareTo
-
Constructor Details
-
S3ContentType
public S3ContentType()
-
-
Method Details
-
apply
- Specified by:
applyin classS3ObjectMetadata- Throws:
ServiceException
-
getContentType
Sets the Content-Type HTTP header indicating the type of content stored in the associated object.The value of this header is a standard MIME type. When uploading files, the AWS S3 Java client will attempt to determine the correct content type if one hasn't been set yet. Users are responsible for ensuring a suitable content type is set when uploading streams. If no content type is provided and cannot be determined by the filename, the default content type "application/octet-stream" will be used.
-
setContentType
Sets the Content-Type HTTP header indicating the type of content stored in the associated object.The value of this header is a standard MIME type. When uploading files, the AWS S3 Java client will attempt to determine the correct content type if one hasn't been set yet. Users are responsible for ensuring a suitable content type is set when uploading streams. If no content type is provided and cannot be determined by the filename, the default content type "application/octet-stream" will be used.
-