public class MultipartUploadRequest<T extends MultipartUploadRequest> extends OSSRequest
OSSRequest.CRC64Config
限定符和类型 | 字段和说明 |
---|---|
protected java.lang.String |
bucketName |
protected java.util.Map<java.lang.String,java.lang.String> |
callbackParam |
protected java.util.Map<java.lang.String,java.lang.String> |
callbackVars |
protected ObjectMetadata |
metadata |
protected java.lang.String |
objectKey |
protected long |
partSize |
protected OSSProgressCallback<T> |
progressCallback |
protected java.lang.String |
uploadFilePath |
protected java.lang.String |
uploadId |
protected Uri |
uploadUri |
构造器和说明 |
---|
MultipartUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String uploadFilePath)
Constructor
|
MultipartUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String uploadFilePath,
ObjectMetadata metadata)
Constructor
|
MultipartUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
Uri uploadUri)
Constructor
|
MultipartUploadRequest(java.lang.String bucketName,
java.lang.String objectKey,
Uri uploadUri,
ObjectMetadata metadata)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getBucketName() |
java.util.Map<java.lang.String,java.lang.String> |
getCallbackParam() |
java.util.Map<java.lang.String,java.lang.String> |
getCallbackVars() |
ObjectMetadata |
getMetadata() |
java.lang.String |
getObjectKey() |
long |
getPartSize() |
OSSProgressCallback<T> |
getProgressCallback() |
java.lang.String |
getUploadFilePath() |
java.lang.String |
getUploadId() |
Uri |
getUploadUri() |
void |
setBucketName(java.lang.String bucketName)
Sets the OSS bucket name
|
void |
setCallbackParam(java.util.Map<java.lang.String,java.lang.String> callbackParam)
Sets the server callback parameters
|
void |
setCallbackVars(java.util.Map<java.lang.String,java.lang.String> callbackVars)
Sets the server callback variables
|
void |
setMetadata(ObjectMetadata metadata)
Sets the metadata of the target object
|
void |
setObjectKey(java.lang.String objectKey)
Sets the OSS object key
|
void |
setPartSize(long partSize)
Sets the part size, by default it's 256KB and the minimal value is 100KB
|
void |
setProgressCallback(OSSProgressCallback<T> progressCallback)
Sets the upload progress callback
|
void |
setUploadFilePath(java.lang.String uploadFilePath)
Sets the local path of the file to upload
|
void |
setUploadId(java.lang.String uploadId) |
void |
setUploadUri(Uri uploadUri) |
getCRC64, isAuthorizationRequired, setCRC64, setIsAuthorizationRequired
protected java.lang.String bucketName
protected java.lang.String objectKey
protected java.lang.String uploadId
protected java.lang.String uploadFilePath
protected Uri uploadUri
protected long partSize
protected ObjectMetadata metadata
protected java.util.Map<java.lang.String,java.lang.String> callbackParam
protected java.util.Map<java.lang.String,java.lang.String> callbackVars
protected OSSProgressCallback<T extends MultipartUploadRequest> progressCallback
public MultipartUploadRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String uploadFilePath)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadFilePath
- The local path of the file to uploadpublic MultipartUploadRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String uploadFilePath, ObjectMetadata metadata)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadFilePath
- The local path of the file to uploadmetadata
- The metadata of the target objectpublic MultipartUploadRequest(java.lang.String bucketName, java.lang.String objectKey, Uri uploadUri)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadUri
- The Uri of the file to uploadpublic MultipartUploadRequest(java.lang.String bucketName, java.lang.String objectKey, Uri uploadUri, ObjectMetadata metadata)
bucketName
- The target object's bucket nameobjectKey
- The target object's keyuploadUri
- The Uri of the file to uploadmetadata
- The metadata of the target objectpublic java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- public java.lang.String getObjectKey()
public void setObjectKey(java.lang.String objectKey)
objectKey
- public java.lang.String getUploadFilePath()
public void setUploadFilePath(java.lang.String uploadFilePath)
uploadFilePath
- the local path of the file to uploadpublic ObjectMetadata getMetadata()
public Uri getUploadUri()
public void setUploadUri(Uri uploadUri)
public void setMetadata(ObjectMetadata metadata)
metadata
- The metadatapublic OSSProgressCallback<T> getProgressCallback()
public void setProgressCallback(OSSProgressCallback<T> progressCallback)
public long getPartSize()
public void setPartSize(long partSize)
partSize
- size in bytepublic java.util.Map<java.lang.String,java.lang.String> getCallbackParam()
public void setCallbackParam(java.util.Map<java.lang.String,java.lang.String> callbackParam)
public java.util.Map<java.lang.String,java.lang.String> getCallbackVars()
public void setCallbackVars(java.util.Map<java.lang.String,java.lang.String> callbackVars)
public java.lang.String getUploadId()
public void setUploadId(java.lang.String uploadId)