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 final boolean isFinished()
public final boolean isTransmitting()
public final String getFinalName()
public final long getFileSize()
public final String getIdentifier()
public final String getHash()
public final String getComputedHadh()
public final void error(Exception e, R66BusinessInterface business) throws IllegalArgumentException
HttpSession
error
in interface HttpSession
error
in class HttpSessionAbstract
IllegalArgumentException
public final boolean tryWrite(OutputStream stream) throws IOException
stream
- IOException
public final void downloadFinished()
Copyright © 2009–2022 Waarp. All rights reserved.