|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResumableUploadApi
Provides Resumable Upload support via Rest API
| Method Summary | |
|---|---|
ResumableUpload |
checkStatus(String bucketName,
String uploadId,
String contentRange)
Check the status of a resumable upload |
ResumableUpload |
chunkUpload(String bucketName,
String uploadId,
String contentType,
Long contentLength,
String contentRange,
org.jclouds.io.Payload payload)
Facilitate to use resumable upload operation to upload files in chunks |
ResumableUpload |
initResumableUpload(String bucketName,
String contentType,
Long contentLength,
ObjectTemplate metadata)
initiate a Resumable Upload Session |
ResumableUpload |
initResumableUpload(String bucketName,
String objectName,
String contentType,
String contentLength)
initiate a Resumable Upload Session |
ResumableUpload |
upload(String bucketName,
String uploadId,
String contentType,
String contentLength,
org.jclouds.io.Payload payload)
Stores a new object |
| Method Detail |
|---|
@Named(value="Object:initResumableUpload")
ResumableUpload initResumableUpload(String bucketName,
String objectName,
@HeaderParam(value="X-Upload-Content-Type")
String contentType,
@HeaderParam(value="X-Upload-Content-Length")
String contentLength)
bucketName - Name of the bucket in which the object to be storedobjectName - Name of the object to uploadcontentType - Content type of the uploaded datacontentLength - ContentLength of the uploaded object (Media part)
ResumableUploadhttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#resumable
@Named(value="Object:resumableUpload")
ResumableUpload initResumableUpload(String bucketName,
@HeaderParam(value="X-Upload-Content-Type")
String contentType,
@HeaderParam(value="X-Upload-Content-Length")
Long contentLength,
ObjectTemplate metadata)
bucketName - Name of the bucket in which the object to be storedcontentType - Content type of the uploaded data (Media part)contentLength - Content length of the uploaded data (Media part)metada - Supply an ObjectTemplate
ResumableUploadhttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#simple
@Named(value="Object:resumableUpload")
ResumableUpload upload(String bucketName,
String uploadId,
@HeaderParam(value="Content-Type")
String contentType,
@HeaderParam(value="Content-Length")
String contentLength,
org.jclouds.io.Payload payload)
bucketName - Name of the bucket in which the object to be storedoptions - Supply InsertObjectOptions with optional query parameters. 'name' is mandatory.
GCSObject resource.https://developers.google.com/storage/docs/json_api/v1/how-tos/upload#resumable
@Named(value="Object:Upload")
ResumableUpload chunkUpload(String bucketName,
String uploadId,
@HeaderParam(value="Content-Type")
String contentType,
@HeaderParam(value="Content-Length")
Long contentLength,
@HeaderParam(value="Content-Range")
String contentRange,
org.jclouds.io.Payload payload)
bucketName - Name of the bucket in which the object to be storeduploadId - uploadId returned from initResumableUpload operationcontentType - Content type of the uploaded datacontentLength - Content length of the uploaded datacontentRange - Range in {bytes StartingByte - Endingbyte/Totalsize } format ex: bytes 0 - 1213/2000payload - a Payload with actual data to upload
ResumableUploadhttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#resumable
@Named(value="Object:Upload")
ResumableUpload checkStatus(String bucketName,
String uploadId,
@HeaderParam(value="Content-Range")
String contentRange)
bucketName - Name of the bucket in which the object to be storeduploadId - uploadId returned from initResumableUpload operationcontentRange - Range in {bytes StartingByte - Endingbyte/Totalsize } format ex: bytes 0 - 1213/2000
ResumableUploadhttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#resumable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||