![JAR search and dependency download from the Maven repository](/logo.png)
com.causecode.fileuploader.cdn.BlobDetail.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of file-uploader Show documentation
Show all versions of file-uploader Show documentation
This Plugin provides endpoints for file upload to CDN related operations.
The newest version!
package com.causecode.fileuploader.cdn
import com.causecode.fileuploader.UFile
/**
* Class to hold Blob related details
*/
class BlobDetail {
UFile ufile
String remoteBlobName
File localFile
String eTag
BlobDetail(String remoteBlobName, File localFile, UFile uFile) {
this(remoteBlobName, localFile, uFile, '')
}
BlobDetail(String remoteBlobName, File localFile, UFile ufile, String eTag) {
this.remoteBlobName = remoteBlobName
this.localFile = localFile
this.eTag = eTag
this.ufile = ufile
}
String getRemoteBlobName() {
return remoteBlobName
}
File getLocalFile() {
return localFile
}
String getETag() {
return eTag
}
boolean isUploaded() {
return eTag != null
}
@Override
String toString() {
"{$remoteBlobName}{$localFile}{$ufile.id}"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy