Class S3ContentType
- java.lang.Object
-
- com.adaptris.aws.s3.meta.S3ObjectMetadata
-
- com.adaptris.aws.s3.meta.S3ContentType
-
- All Implemented Interfaces:
java.lang.Comparable<S3ObjectMetadata>
public class S3ContentType extends S3ObjectMetadata
-
-
Constructor Summary
Constructors Constructor Description S3ContentType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(AdaptrisMessage msg, com.amazonaws.services.s3.model.ObjectMetadata meta)
@NonNull java.lang.String
getContentType()
Sets the Content-Type HTTP header indicating the type of content stored in the associated object.void
setContentType(@NonNull java.lang.String contentType)
Sets the Content-Type HTTP header indicating the type of content stored in the associated object.-
Methods inherited from class com.adaptris.aws.s3.meta.S3ObjectMetadata
compareTo
-
-
-
-
Method Detail
-
apply
public void apply(AdaptrisMessage msg, com.amazonaws.services.s3.model.ObjectMetadata meta) throws ServiceException
- Specified by:
apply
in classS3ObjectMetadata
- Throws:
ServiceException
-
getContentType
@NonNull public @NonNull java.lang.String 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
public void setContentType(@NonNull @NonNull java.lang.String contentType)
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.
-
-