| Modifier and Type | Method and Description |
|---|---|
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,
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,
Payload payload)
Stores a new object
|
@Named(value="Object:initResumableUpload")
@POST
@Path(value="/upload/storage/v1/b/{bucket}/o")
ResumableUpload initResumableUpload(@PathParam(value="bucket")
String bucketName,
@QueryParam(value="name")
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")
@POST
@Path(value="/upload/storage/v1/b/{bucket}/o")
ResumableUpload initResumableUpload(@PathParam(value="bucket")
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 ObjectTemplateResumableUploadhttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#simple@Named(value="Object:resumableUpload")
@PUT
@Path(value="/upload/storage/v1/b/{bucket}/o")
ResumableUpload upload(@PathParam(value="bucket")
String bucketName,
@QueryParam(value="upload_id")
String uploadId,
@HeaderParam(value="Content-Type")
String contentType,
@HeaderParam(value="Content-Length")
String contentLength,
Payload payload)
bucketName - Name of the bucket in which the object to be storedoptions - Supply InsertObjectOptions with optional query parameters. 'name' is mandatory.GoogleCloudStorageObject resource.https://developers.google.com/storage/docs/json_api/v1/how-tos/upload#resumable@Named(value="Object:Upload")
@PUT
@Path(value="/upload/storage/v1/b/{bucket}/o")
ResumableUpload chunkUpload(@PathParam(value="bucket")
String bucketName,
@QueryParam(value="upload_id")
String uploadId,
@HeaderParam(value="Content-Type")
String contentType,
@HeaderParam(value="Content-Length")
Long contentLength,
@HeaderParam(value="Content-Range")
String contentRange,
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 uploadResumableUploadhttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#resumable@Named(value="Object:Upload")
@PUT
@DefaultValue(value="0")
@Path(value="/upload/storage/v1/b/{bucket}/o")
ResumableUpload checkStatus(@PathParam(value="bucket")
String bucketName,
@QueryParam(value="upload_id")
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/2000ResumableUploadhttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#resumableCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.