@Consumes(value="application/json")
public interface MultipartApi
Modifier and Type | Method and 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) |
@Named(value="b2_start_large_file") @POST @Path(value="/b2api/v1/b2_start_large_file") @Produces(value="application/json") MultipartUploadResponse startLargeFile(String bucketId, String fileName, String contentType, Map<String,String> fileInfo)
@Named(value="b2_cancel_large_file") @POST @Path(value="/b2api/v1/b2_cancel_large_file") @Produces(value="application/json") B2Object cancelLargeFile(String fileId)
@Named(value="b2_finish_large_file") @POST @Path(value="/b2api/v1/b2_finish_large_file") @Produces(value="application/json") B2Object finishLargeFile(String fileId, Collection<String> contentSha1List)
@Named(value="b2_get_upload_part_url") @POST @Path(value="/b2api/v1/b2_get_upload_part_url") @Produces(value="application/json") GetUploadPartResponse getUploadPartUrl(String fileId)
@Named(value="b2_upload_part") @POST UploadPartResponse uploadPart(GetUploadPartResponse response, @HeaderParam(value="X-Bz-Part-Number") int partNumber, @Nullable String sha1, Payload payload)
@Named(value="b2_list_parts") @POST @Path(value="/b2api/v1/b2_list_parts") @Produces(value="application/json") ListPartsResponse listParts(String fileId, @Nullable Integer startPartNumber, @Nullable Integer maxPartCount)
@Named(value="b2_list_unfinished_large_files") @POST @Path(value="/b2api/v1/b2_list_unfinished_large_files") @Produces(value="application/json") ListUnfinishedLargeFilesResponse listUnfinishedLargeFiles(String bucketId, @Nullable String startFileId, @Nullable Integer maxFileCount)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.