com.aelitis.azureus.plugins.extseed.util
Class ExternalSeedHTTPDownloaderRange
java.lang.Object
com.aelitis.azureus.plugins.extseed.util.ExternalSeedHTTPDownloaderRange
- All Implemented Interfaces:
- ExternalSeedHTTPDownloader, SEPasswordListener
public class ExternalSeedHTTPDownloaderRange
- extends java.lang.Object
- implements ExternalSeedHTTPDownloader, SEPasswordListener
Field Summary |
static java.lang.String |
NL
|
Method Summary |
void |
clearPasswords()
|
void |
deactivate()
|
void |
download(int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
|
void |
download(java.lang.String[] prop_names,
java.lang.String[] prop_values,
int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
|
void |
downloadRange(long offset,
int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
|
void |
downloadSocket(int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
|
void |
downloadSocket(java.lang.String[] prop_names,
java.lang.String[] prop_values,
int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
|
java.net.PasswordAuthentication |
getAuthentication(java.lang.String realm,
java.net.URL tracker)
|
int |
getLast503RetrySecs()
|
int |
getLastResponse()
|
java.net.URL |
getURL()
|
static void |
main(java.lang.String[] args)
|
void |
setAuthenticationOutcome(java.lang.String realm,
java.net.URL tracker,
boolean success)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NL
public static final java.lang.String NL
- See Also:
- Constant Field Values
ExternalSeedHTTPDownloaderRange
public ExternalSeedHTTPDownloaderRange(java.net.URL _url,
java.lang.String _user_agent)
getURL
public java.net.URL getURL()
download
public void download(int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
throws ExternalSeedException
- Specified by:
download
in interface ExternalSeedHTTPDownloader
- Throws:
ExternalSeedException
downloadRange
public void downloadRange(long offset,
int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
throws ExternalSeedException
- Specified by:
downloadRange
in interface ExternalSeedHTTPDownloader
- Throws:
ExternalSeedException
download
public void download(java.lang.String[] prop_names,
java.lang.String[] prop_values,
int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
throws ExternalSeedException
- Throws:
ExternalSeedException
downloadSocket
public void downloadSocket(int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
throws ExternalSeedException
- Specified by:
downloadSocket
in interface ExternalSeedHTTPDownloader
- Throws:
ExternalSeedException
downloadSocket
public void downloadSocket(java.lang.String[] prop_names,
java.lang.String[] prop_values,
int length,
ExternalSeedHTTPDownloaderListener listener,
boolean con_fail_is_perm_fail)
throws ExternalSeedException
- Throws:
ExternalSeedException
deactivate
public void deactivate()
- Specified by:
deactivate
in interface ExternalSeedHTTPDownloader
getAuthentication
public java.net.PasswordAuthentication getAuthentication(java.lang.String realm,
java.net.URL tracker)
- Specified by:
getAuthentication
in interface SEPasswordListener
setAuthenticationOutcome
public void setAuthenticationOutcome(java.lang.String realm,
java.net.URL tracker,
boolean success)
- Specified by:
setAuthenticationOutcome
in interface SEPasswordListener
clearPasswords
public void clearPasswords()
- Specified by:
clearPasswords
in interface SEPasswordListener
getLastResponse
public int getLastResponse()
- Specified by:
getLastResponse
in interface ExternalSeedHTTPDownloader
getLast503RetrySecs
public int getLast503RetrySecs()
- Specified by:
getLast503RetrySecs
in interface ExternalSeedHTTPDownloader
main
public static void main(java.lang.String[] args)