Package com.biglybt.plugin.extseed.util
Class ExternalSeedHTTPDownloaderLinear.Downloader
- java.lang.Object
-
- com.biglybt.plugin.extseed.util.ExternalSeedHTTPDownloaderLinear.Downloader
-
- All Implemented Interfaces:
SEPasswordListener
- Enclosing class:
- ExternalSeedHTTPDownloaderLinear
protected class ExternalSeedHTTPDownloaderLinear.Downloader extends java.lang.Object implements SEPasswordListener
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
con_fail_is_perm_fail
private boolean
destroyed
private ExternalSeedHTTPDownloaderListener
listener
private java.io.RandomAccessFile
raf
private java.util.List<ExternalSeedHTTPDownloaderLinear.Request>
requests
private java.io.File
scratch_file
-
Constructor Summary
Constructors Modifier Constructor Description protected
Downloader(ExternalSeedHTTPDownloaderListener _listener, boolean _con_fail_is_perm_fail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExternalSeedHTTPDownloaderLinear.Request
addRequest(long offset, int length, ExternalSeedHTTPDownloaderListener listener)
protected int
checkRequests()
void
clearPasswords()
protected void
destroy(ExternalSeedException error)
protected void
download()
java.net.PasswordAuthentication
getAuthentication(java.lang.String realm, java.net.URL tracker)
void
setAuthenticationOutcome(java.lang.String realm, java.net.URL tracker, boolean success)
-
-
-
Field Detail
-
listener
private ExternalSeedHTTPDownloaderListener listener
-
con_fail_is_perm_fail
private boolean con_fail_is_perm_fail
-
destroyed
private volatile boolean destroyed
-
requests
private java.util.List<ExternalSeedHTTPDownloaderLinear.Request> requests
-
raf
private java.io.RandomAccessFile raf
-
scratch_file
private java.io.File scratch_file
-
-
Constructor Detail
-
Downloader
protected Downloader(ExternalSeedHTTPDownloaderListener _listener, boolean _con_fail_is_perm_fail)
-
-
Method Detail
-
download
protected void download()
-
addRequest
protected ExternalSeedHTTPDownloaderLinear.Request addRequest(long offset, int length, ExternalSeedHTTPDownloaderListener listener) throws ExternalSeedException
- Throws:
ExternalSeedException
-
checkRequests
protected int checkRequests()
-
destroy
protected void destroy(ExternalSeedException error)
-
getAuthentication
public java.net.PasswordAuthentication getAuthentication(java.lang.String realm, java.net.URL tracker)
- Specified by:
getAuthentication
in interfaceSEPasswordListener
-
setAuthenticationOutcome
public void setAuthenticationOutcome(java.lang.String realm, java.net.URL tracker, boolean success)
- Specified by:
setAuthenticationOutcome
in interfaceSEPasswordListener
-
clearPasswords
public void clearPasswords()
- Specified by:
clearPasswords
in interfaceSEPasswordListener
-
-