public class HttpDownloadSession extends HttpSessionAbstract
Modifier and Type | Field and Description |
---|---|
protected static String |
HASH |
authent, session
Constructor and Description |
---|
HttpDownloadSession(String identifier,
HttpAuthent authent)
Constructor for reading from database only
|
HttpDownloadSession(String filename,
String rulename,
String identifier,
String comment,
HttpAuthent authent)
Constructor for an Http Download Session
|
Modifier and Type | Method and Description |
---|---|
void |
downloadFinished()
Finalize the current download
|
void |
error(Exception e,
R66BusinessInterface business)
For any error
|
String |
getComputedHadh() |
long |
getFileSize() |
String |
getFinalName() |
String |
getHash() |
String |
getIdentifier() |
boolean |
isFinished() |
boolean |
isTransmitting() |
String |
toString() |
boolean |
tryWrite(OutputStream stream)
Try to read and return all bytes from file
|
checkAuthentR66Business, getDbTaskRunner, getDbTaskRunner, preTasks, runPostTask, startTransfer
protected static final String HASH
public HttpDownloadSession(String filename, String rulename, String identifier, String comment, HttpAuthent authent) throws IllegalArgumentException
filename
- rulename
- identifier
- comment
- authent
- already initializedIllegalArgumentException
- if something wrong happenspublic HttpDownloadSession(String identifier, HttpAuthent authent) throws WaarpDatabaseException
identifier
- authent
- WaarpDatabaseException
public boolean isFinished()
public boolean isTransmitting()
public String getFinalName()
public long getFileSize()
public String getIdentifier()
public String getHash()
public String getComputedHadh()
public void error(Exception e, R66BusinessInterface business) throws IllegalArgumentException
HttpSession
error
in interface HttpSession
error
in class HttpSessionAbstract
IllegalArgumentException
public boolean tryWrite(OutputStream stream) throws IOException
stream
- IOException
public void downloadFinished()
Copyright © 2009–2020 Waarp. All rights reserved.