Package org.jclouds.b2.features
Interface MultipartApi
-
@Consumes("application/json") public interface MultipartApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B2Object
cancelLargeFile(String fileId)
B2Object
finishLargeFile(String fileId, Collection<String> contentSha1List)
GetUploadPartResponse
getUploadPartUrl(String fileId)
ListPartsResponse
listParts(String fileId, Integer startPartNumber, Integer maxPartCount)
ListUnfinishedLargeFilesResponse
listUnfinishedLargeFiles(String bucketId, String startFileId, Integer maxFileCount)
MultipartUploadResponse
startLargeFile(String bucketId, String fileName, String contentType, Map<String,String> fileInfo)
UploadPartResponse
uploadPart(GetUploadPartResponse response, int partNumber, String sha1, Payload payload)
-
-
-
Method Detail
-
startLargeFile
@Named("b2_start_large_file") @POST @Path("/b2api/v2/b2_start_large_file") @Produces("application/json") MultipartUploadResponse startLargeFile(String bucketId, String fileName, String contentType, Map<String,String> fileInfo)
-
cancelLargeFile
@Named("b2_cancel_large_file") @POST @Path("/b2api/v2/b2_cancel_large_file") @Produces("application/json") B2Object cancelLargeFile(String fileId)
-
finishLargeFile
@Named("b2_finish_large_file") @POST @Path("/b2api/v2/b2_finish_large_file") @Produces("application/json") B2Object finishLargeFile(String fileId, Collection<String> contentSha1List)
-
getUploadPartUrl
@Named("b2_get_upload_part_url") @POST @Path("/b2api/v2/b2_get_upload_part_url") @Produces("application/json") GetUploadPartResponse getUploadPartUrl(String fileId)
-
uploadPart
@Named("b2_upload_part") @POST UploadPartResponse uploadPart(GetUploadPartResponse response, @HeaderParam("X-Bz-Part-Number") int partNumber, @Nullable String sha1, Payload payload)
-
listParts
@Named("b2_list_parts") @POST @Path("/b2api/v2/b2_list_parts") @Produces("application/json") ListPartsResponse listParts(String fileId, @Nullable Integer startPartNumber, @Nullable Integer maxPartCount)
-
-