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 java.lang.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(java.lang.String key)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getBooleanProperty
public boolean getBooleanProperty(java.lang.String key,
boolean maybe_delayed)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getLongProperty
public long getLongProperty(java.lang.String key)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getStringProperty
public java.lang.String getStringProperty(java.lang.String key)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getProperty
public java.lang.Object getProperty(java.lang.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 java.lang.Object getProperty(java.lang.String name,
boolean maybe_delayed)
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
getPropertySupport
protected java.lang.Object getPropertySupport(java.lang.String name)
getLCKeyProperties
protected java.util.Map getLCKeyProperties()
getStringPropertySupport
protected java.lang.String getStringPropertySupport(java.lang.String name)
setPropertiesSet
protected void setPropertiesSet()
throws ResourceDownloaderException
- Throws:
ResourceDownloaderException
setPropertySupport
protected void setPropertySupport(java.lang.String name,
java.lang.Object value)
setProperties
protected void setProperties(ResourceDownloaderBaseImpl other)
setPropertyRecursive
protected void setPropertyRecursive(java.lang.String name,
java.lang.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 java.util.List<ResourceDownloaderBaseImpl> getChildren()
getLogIndent
protected java.lang.String getLogIndent()
addReportListener
protected void addReportListener(ResourceDownloader rd)
informPercentDone
protected void informPercentDone(int percentage)
informAmountComplete
protected void informAmountComplete(long amount)
reportActivity
public void reportActivity(java.lang.String str)
- Specified by:
reportActivity
in interface ResourceDownloader
informActivity
protected void informActivity(java.lang.String activity)
informComplete
protected boolean informComplete(java.io.InputStream is)
informFailed
protected void informFailed(ResourceDownloaderException e)
reportActivity
public void reportActivity(ResourceDownloader downloader,
java.lang.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