Class S3ContentType

    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • S3ContentType

        public S3ContentType()
    • Method Detail

      • 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.