public class BoxFileUpload extends Object
IFileTransferListener to monitor uploading progress.| Constructor and Description |
|---|
BoxFileUpload(IBoxConfig config)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BoxFile |
execute(BoxFilesManager manager,
BoxFileUploadRequestObject requestObject)
Execute the upload task.
|
BoxFile |
execute(String fileId,
BoxFilesManager manager,
BoxFileUploadRequestObject requestObject)
Upload a new version of file with known file id and sha1.
|
public BoxFileUpload(IBoxConfig config)
config - configpublic BoxFile execute(BoxFilesManager manager, BoxFileUploadRequestObject requestObject) throws BoxServerException, BoxRestException, AuthFatalFailureException, InterruptedException
manager - BoxFilesManagerrequestObject - request objecctBoxServerException - exceptionBoxRestException - exceptionAuthFatalFailureException - exception indicating authentication totally failedInterruptedException - interrupted exception.public BoxFile execute(String fileId, BoxFilesManager manager, BoxFileUploadRequestObject requestObject) throws BoxServerException, BoxRestException, AuthFatalFailureException, InterruptedException
fileId - id of the filerequestObject - request objecctBoxServerException - exceptionBoxRestException - exceptionAuthFatalFailureException - exceptionInterruptedException - interrupted exception.Copyright © 2014. All Rights Reserved.