public class SFUploadSpecification extends SFODataObject
| Constructor and Description |
|---|
SFUploadSpecification() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
getChunkUri()
Specifies the URI the client must send the file data to
|
java.net.URI |
getFinishUri()
If provided, specifies the final call the client must perform to finish the upload process
|
java.lang.Boolean |
getIsResume()
Specifies a Resumable upload is supproted.
|
SFSafeEnum<SFUploadMethod> |
getMethod()
The Upload method that must be used for this upload
|
java.net.URI |
getPrepareUri()
If provided, clients must issue a request to this Uri before uploading any data.
|
java.lang.String |
getProgressData()
Allows the client to check progress of standard uploads
|
java.lang.String |
getResumeFileHash()
Specifies the MD5 hash of the first ResumeOffset bytes of the partial file found at the server
|
java.lang.Long |
getResumeIndex()
Specifies the initial index for resuming, if IsResume is true.
|
java.lang.Long |
getResumeOffset()
Specifies the initial file offset by bytes, if IsResume is true
|
void |
setChunkUri(java.net.URI chunkuri)
Specifies the URI the client must send the file data to
|
void |
setFinishUri(java.net.URI finishuri)
If provided, specifies the final call the client must perform to finish the upload process
|
void |
setIsResume(java.lang.Boolean isresume)
Specifies a Resumable upload is supproted.
|
void |
setMethod(SFSafeEnum<SFUploadMethod> method)
The Upload method that must be used for this upload
|
void |
setPrepareUri(java.net.URI prepareuri)
If provided, clients must issue a request to this Uri before uploading any data.
|
void |
setProgressData(java.lang.String progressdata)
Allows the client to check progress of standard uploads
|
void |
setResumeFileHash(java.lang.String resumefilehash)
Specifies the MD5 hash of the first ResumeOffset bytes of the partial file found at the server
|
void |
setResumeIndex(java.lang.Long resumeindex)
Specifies the initial index for resuming, if IsResume is true.
|
void |
setResumeOffset(java.lang.Long resumeoffset)
Specifies the initial file offset by bytes, if IsResume is true
|
addProperty, get__type, getId, getMetadataUrl, getProperties, geturl, set__type, setId, setMetadataUrl, setProperties, seturlpublic SFSafeEnum<SFUploadMethod> getMethod()
public void setMethod(SFSafeEnum<SFUploadMethod> method)
public java.net.URI getPrepareUri()
public void setPrepareUri(java.net.URI prepareuri)
public java.net.URI getChunkUri()
public void setChunkUri(java.net.URI chunkuri)
public java.net.URI getFinishUri()
public void setFinishUri(java.net.URI finishuri)
public java.lang.String getProgressData()
public void setProgressData(java.lang.String progressdata)
public java.lang.Boolean getIsResume()
public void setIsResume(java.lang.Boolean isresume)
public java.lang.Long getResumeIndex()
public void setResumeIndex(java.lang.Long resumeindex)
public java.lang.Long getResumeOffset()
public void setResumeOffset(java.lang.Long resumeoffset)
public java.lang.String getResumeFileHash()
public void setResumeFileHash(java.lang.String resumefilehash)