public class BatchUpload extends AbstractConnectable<BatchUploadAPI,BatchUpload>
| Modifier and Type | Class and Description |
|---|---|
class |
BatchUpload.BatchUploadOperation |
| Modifier and Type | Field and Description |
|---|---|
protected String |
batchId |
protected int |
chunkCount |
protected int |
chunkSize |
protected String |
fileIdx |
protected String |
name |
protected int[] |
uploadedChunkIds |
protected long |
uploadedSize |
protected String |
uploadType |
api, apiClass, nuxeoClientheaderInterceptors, headerValues, okhttpBuilder, retrofit, retrofitBuilder| Modifier | Constructor and Description |
|---|---|
protected |
BatchUpload()
For deserialization purpose.
|
protected |
BatchUpload(NuxeoClient nuxeoClient,
String batchId) |
protected |
BatchUpload(NuxeoClient nuxeoClient,
String batchId,
String fileIdx) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
BatchUpload |
chunkSize(int chunkSize) |
BatchUpload |
enableChunk() |
BatchUpload |
fetchBatchUpload()
This method can only be called on a
BatchUpload representing a real upload (ie: fileIdx != null). |
BatchUpload |
fetchBatchUpload(String fileIdx) |
List<BatchUpload> |
fetchBatchUploads() |
BatchBlob |
getBatchBlob()
This method can only be called on a
BatchUpload representing a real upload (ie: fileIdx != null). |
BatchBlob |
getBatchBlob(String fileIdx) |
String |
getBatchId() |
int |
getChunkCount() |
String |
getFileIdx() |
String |
getName() |
long |
getSize() |
int[] |
getUploadedChunkIds() |
long |
getUploadedSize() |
String |
getUploadType() |
BatchUpload.BatchUploadOperation |
operation(String operationId)
This method can only be called on a
BatchUpload representing a real upload (ie: fileIdx != null). |
protected void |
setSize(long size)
Use for deserialization purpose on GET calls.
|
BatchUpload |
upload(String fileIdx,
Blob blob)
Uploads the given blob to the current
BatchUpload for given index. |
BatchUpload |
upload(String fileIdx,
File file)
Deprecated.
since 3.1, use
upload(String, Blob) instead |
BatchUpload |
upload(String fileIdx,
File file,
String name)
Deprecated.
since 3.1, use
upload(String, Blob) instead |
BatchUpload |
upload(String fileIdx,
File file,
String name,
String fileType)
Deprecated.
since 3.1, use
upload(String, Blob) instead |
BatchUpload |
upload(String fileIdx,
File file,
String name,
String fileType,
long length)
Deprecated.
since 3.1, use
upload(String, Blob) instead |
buildRetrofit, fetchResponse, fetchResponse, reconnectWithconnectTimeout, depth, enrichers, enrichers, enrichersForDocument, fetchProperties, fetchProperties, fetchPropertiesForDocument, fetchPropertiesForGroup, header, header, header, header, header, header, header, readTimeout, replaceWith, schemas, schemas, timeout, transactionTimeout, versionprotected int chunkSize
protected String name
protected String batchId
protected String fileIdx
protected String uploadType
protected long uploadedSize
protected int[] uploadedChunkIds
protected int chunkCount
protected BatchUpload()
protected BatchUpload(NuxeoClient nuxeoClient, String batchId)
protected BatchUpload(NuxeoClient nuxeoClient, String batchId, String fileIdx)
public String getName()
public String getBatchId()
public String getFileIdx()
public String getUploadType()
public long getUploadedSize()
public long getSize()
public int[] getUploadedChunkIds()
public int getChunkCount()
protected void setSize(long size)
@Deprecated public BatchUpload upload(String fileIdx, File file)
upload(String, Blob) instead@Deprecated public BatchUpload upload(String fileIdx, File file, String name)
upload(String, Blob) instead@Deprecated public BatchUpload upload(String fileIdx, File file, String name, String fileType)
upload(String, Blob) instead@Deprecated public BatchUpload upload(String fileIdx, File file, String name, String fileType, long length)
upload(String, Blob) insteadpublic BatchUpload upload(String fileIdx, Blob blob)
BatchUpload for given index.public void cancel()
public List<BatchUpload> fetchBatchUploads()
public BatchUpload fetchBatchUpload()
BatchUpload representing a real upload (ie: fileIdx != null).public BatchUpload fetchBatchUpload(String fileIdx)
public BatchBlob getBatchBlob()
BatchUpload representing a real upload (ie: fileIdx != null).public BatchUpload chunkSize(int chunkSize)
public BatchUpload enableChunk()
public BatchUpload.BatchUploadOperation operation(String operationId)
BatchUpload representing a real upload (ie: fileIdx != null).Copyright © 2018 Nuxeo. All rights reserved.