public class ChunkedUploadRequest
extends java.lang.Object
| Constructor and Description |
|---|
ChunkedUploadRequest(java.lang.String requestUrl,
IGraphServiceClient client,
java.util.List<? extends Option> options,
byte[] chunk,
int chunkSize,
int maxRetry,
long beginIndex,
long totalLength)
Construct the ChunkedUploadRequest
|
| Modifier and Type | Method and Description |
|---|---|
<UploadType> |
upload(ChunkedUploadResponseHandler<UploadType> responseHandler)
Upload a chunk with tries.
|
public ChunkedUploadRequest(java.lang.String requestUrl,
IGraphServiceClient client,
java.util.List<? extends Option> options,
byte[] chunk,
int chunkSize,
int maxRetry,
long beginIndex,
long totalLength)
requestUrl - The upload URL.client - The Graph client.options - The query options.chunk - The chunk byte array.chunkSize - The chunk array size.maxRetry - The limit on retry.beginIndex - The begin index of this chunk in the input stream.totalLength - The total length of the input stream.public <UploadType> ChunkedUploadResult<UploadType> upload(ChunkedUploadResponseHandler<UploadType> responseHandler)
UploadType - The upload item type.responseHandler - The handler to handle the HTTP response.