com.aelitis.azureus.plugins.extseed.util
Class ExternalSeedHTTPDownloaderRange

java.lang.Object
  extended by com.aelitis.azureus.plugins.extseed.util.ExternalSeedHTTPDownloaderRange
All Implemented Interfaces:
ExternalSeedHTTPDownloader, SEPasswordListener

public class ExternalSeedHTTPDownloaderRange
extends Object
implements ExternalSeedHTTPDownloader, SEPasswordListener


Field Summary
static String NL
           
 
Constructor Summary
ExternalSeedHTTPDownloaderRange(URL _url, String _user_agent)
           
 
Method Summary
 void clearPasswords()
           
 void deactivate()
           
 void download(int length, ExternalSeedHTTPDownloaderListener listener, boolean con_fail_is_perm_fail)
           
 void download(String[] prop_names, 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(String[] prop_names, String[] prop_values, int length, ExternalSeedHTTPDownloaderListener listener, boolean con_fail_is_perm_fail)
           
 PasswordAuthentication getAuthentication(String realm, URL tracker)
           
 int getLast503RetrySecs()
           
 int getLastResponse()
           
 URL getURL()
           
static void main(String[] args)
           
 void setAuthenticationOutcome(String realm, URL tracker, boolean success)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NL

public static final String NL
See Also:
Constant Field Values
Constructor Detail

ExternalSeedHTTPDownloaderRange

public ExternalSeedHTTPDownloaderRange(URL _url,
                                       String _user_agent)
Method Detail

getURL

public 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(String[] prop_names,
                     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(String[] prop_names,
                           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 PasswordAuthentication getAuthentication(String realm,
                                                URL tracker)
Specified by:
getAuthentication in interface SEPasswordListener

setAuthenticationOutcome

public void setAuthenticationOutcome(String realm,
                                     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(String[] args)