org.gudy.azureus2.pluginsimpl.local.utils.resourcedownloader
Class ResourceDownloaderBaseImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.utils.resourcedownloader.ResourceDownloaderBaseImpl
- All Implemented Interfaces:
- ResourceDownloader
- Direct Known Subclasses:
- ResourceDownloaderAlternateImpl, ResourceDownloaderDelayedImpl, ResourceDownloaderErrorImpl, ResourceDownloaderFileImpl, ResourceDownloaderMetaRefreshImpl, ResourceDownloaderRetryImpl, ResourceDownloaderTimeoutImpl, ResourceDownloaderTorrentImpl, ResourceDownloaderURLImpl
public abstract class ResourceDownloaderBaseImpl
- extends Object
- implements ResourceDownloader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
this_mon
protected AEMonitor this_mon
ResourceDownloaderBaseImpl
protected ResourceDownloaderBaseImpl(ResourceDownloaderBaseImpl _parent)
getClone
public ResourceDownloader getClone()
- Specified by:
getClone
in interface ResourceDownloader
getClone
public abstract ResourceDownloaderBaseImpl getClone(ResourceDownloaderBaseImpl _parent)
setSize
protected abstract void setSize(long size)
getBooleanProperty
public boolean getBooleanProperty(String key)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getBooleanProperty
public boolean getBooleanProperty(String key,
boolean maybe_delayed)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getLongProperty
public long getLongProperty(String key)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getStringProperty
public String getStringProperty(String key)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getProperty
public Object getProperty(String name)
throws ResourceDownloaderException
- Description copied from interface:
ResourceDownloader
- Warning! URL response properties have a type of 'List of String'
- Specified by:
getProperty
in interface ResourceDownloader
- Returns:
-
- Throws:
ResourceDownloaderException
getProperty
protected Object getProperty(String name,
boolean maybe_delayed)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getPropertySupport
protected Object getPropertySupport(String name)
getLCKeyProperties
protected Map getLCKeyProperties()
getStringPropertySupport
protected String getStringPropertySupport(String name)
setPropertiesSet
protected void setPropertiesSet()
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
setPropertySupport
protected void setPropertySupport(String name,
Object value)
setProperties
protected void setProperties(ResourceDownloaderBaseImpl other)
setPropertyRecursive
protected void setPropertyRecursive(String name,
Object value)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
isAnonymous
protected boolean isAnonymous()
setParent
protected void setParent(ResourceDownloader _parent)
getParent
protected ResourceDownloaderBaseImpl getParent()
addChild
protected void addChild(ResourceDownloaderBaseImpl kid)
removeChild
protected void removeChild(ResourceDownloaderBaseImpl kid)
getChildren
protected List<ResourceDownloaderBaseImpl> getChildren()
getLogIndent
protected String getLogIndent()
addReportListener
protected void addReportListener(ResourceDownloader rd)
informPercentDone
protected void informPercentDone(int percentage)
informAmountComplete
protected void informAmountComplete(long amount)
reportActivity
public void reportActivity(String str)
- Specified by:
reportActivity
in interface ResourceDownloader
informActivity
protected void informActivity(String activity)
informComplete
protected boolean informComplete(InputStream is)
informFailed
protected void informFailed(ResourceDownloaderException e)
reportActivity
public void reportActivity(ResourceDownloader downloader,
String activity)
reportPercentComplete
public void reportPercentComplete(ResourceDownloader downloader,
int percentage)
reportAmountComplete
public void reportAmountComplete(ResourceDownloader downloader,
long amount)
setCancelled
protected void setCancelled()
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interface ResourceDownloader
addListener
public void addListener(ResourceDownloaderListener l)
- Specified by:
addListener
in interface ResourceDownloader
removeListener
public void removeListener(ResourceDownloaderListener l)
- Specified by:
removeListener
in interface ResourceDownloader