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

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

public class ExternalSeedHTTPDownloaderLinear
extends java.lang.Object
implements ExternalSeedHTTPDownloader


Nested Class Summary
protected  class ExternalSeedHTTPDownloaderLinear.Downloader
           
 
Constructor Summary
ExternalSeedHTTPDownloaderLinear(java.net.URL _url, java.lang.String _user_agent)
           
 
Method Summary
 void deactivate()
           
protected  void destoyed(ExternalSeedHTTPDownloaderLinear.Downloader dead)
           
 void download(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)
           
 int getLast503RetrySecs()
           
 int getLastResponse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalSeedHTTPDownloaderLinear

public ExternalSeedHTTPDownloaderLinear(java.net.URL _url,
                                        java.lang.String _user_agent)
Method Detail

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

deactivate

public void deactivate()
Specified by:
deactivate in interface ExternalSeedHTTPDownloader

destoyed

protected void destoyed(ExternalSeedHTTPDownloaderLinear.Downloader dead)

download

public void download(int length,
                     ExternalSeedHTTPDownloaderListener listener,
                     boolean con_fail_is_perm_fail)
              throws ExternalSeedException
Specified by:
download in interface ExternalSeedHTTPDownloader
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

getLastResponse

public int getLastResponse()
Specified by:
getLastResponse in interface ExternalSeedHTTPDownloader

getLast503RetrySecs

public int getLast503RetrySecs()
Specified by:
getLast503RetrySecs in interface ExternalSeedHTTPDownloader