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