public class S3ContentType extends S3ObjectMetadata
Constructor and Description |
---|
S3ContentType() |
Modifier and Type | Method and 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.
|
compareTo
public void apply(AdaptrisMessage msg, com.amazonaws.services.s3.model.ObjectMetadata meta) throws ServiceException
apply
in class S3ObjectMetadata
ServiceException
@NonNull public @NonNull java.lang.String getContentType()
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.
public void setContentType(@NonNull @NonNull java.lang.String contentType)
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.