Class Upload

  • All Implemented Interfaces:
    Operation

    @ComponentProfile(summary="Upload a blob",
                      tag="jclouds")
    public class Upload
    extends OperationImpl
    Upload an object.

    In the adapter configuration file this class is aliased as jclouds-blobstore-upload which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • Upload

        public Upload()
    • Method Detail

      • buildPutOptions

        protected org.jclouds.blobstore.options.PutOptions buildPutOptions​(org.jclouds.blobstore.BlobStore store,
                                                                           AdaptrisMessage msg)
      • atLeastTwoParts

        protected boolean atLeastTwoParts​(org.jclouds.blobstore.BlobStore store,
                                          long msgSize)
      • getUseMultipart

        public java.lang.Boolean getUseMultipart()
        Whether or not to use multiparts when uploading.

        If not specified, then defaults to true; however, if MultipartUploadSlicingAlgorithm indicates that the object will not be at least two parts then this option has no effect.

      • setUseMultipart

        public void setUseMultipart​(java.lang.Boolean useMultipart)
        Whether or not to use multiparts when uploading.

        If not specified, then defaults to true; however, if MultipartUploadSlicingAlgorithm indicates that the object will not be at least two parts then this option has no effect.