public class HttpResumableSession extends HttpSessionAbstract
authent, session
Modifier and Type | Method and Description |
---|---|
boolean |
checkIfUploadFinished(String sha256)
Check if the current upload is finished or not
|
boolean |
contains(HttpResumableInfo resumableInfo)
Check if the resumableInfo block is already written (previously received)
|
HttpResumableInfo |
getHttpResumableInfo() |
String |
toString() |
boolean |
tryWrite(HttpResumableInfo resumableInfo,
InputStream stream)
Try to write the data according to resumbaleInfo
|
boolean |
valid(HttpResumableInfo resumableInfo)
Check if the resumableInfo is valid compared to current session
|
checkAuthentR66Business, error, getDbTaskRunner, getDbTaskRunner, preTasks, runPostTask, startTransfer
public HttpResumableInfo getHttpResumableInfo()
public boolean tryWrite(HttpResumableInfo resumableInfo, InputStream stream) throws IOException
resumableInfo
- stream
- IOException
public boolean valid(HttpResumableInfo resumableInfo)
resumableInfo
- public boolean contains(HttpResumableInfo resumableInfo)
resumableInfo
- public boolean checkIfUploadFinished(String sha256)
sha256
- if not empty, contains the sha256 in hex formatCopyright © 2009–2020 Waarp. All rights reserved.