Class ResourceDownloaderBaseImpl
java.lang.Object
com.biglybt.pifimpl.local.utils.resourcedownloader.ResourceDownloaderBaseImpl
- All Implemented Interfaces:
ResourceDownloader
- Direct Known Subclasses:
ResourceDownloaderAlternateImpl
,ResourceDownloaderDelayedImpl
,ResourceDownloaderErrorImpl
,ResourceDownloaderFileImpl
,ResourceDownloaderMetaRefreshImpl
,ResourceDownloaderRetryImpl
,ResourceDownloaderTimeoutImpl
,ResourceDownloaderTorrentImpl
,ResourceDownloaderURLImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<ResourceDownloaderBaseImpl>
private boolean
private Map
private List
private ResourceDownloaderBaseImpl
private static final String
private boolean
private Object
protected AEMonitor
Fields inherited from interface com.biglybt.pif.utils.resourcedownloader.ResourceDownloader
PR_BOOLEAN_ANONYMOUS, PR_STRING_CONTENT_TYPE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
protected void
boolean
getBooleanProperty
(String key) boolean
getBooleanProperty
(String key, boolean maybe_delayed) protected List<ResourceDownloaderBaseImpl>
getClone()
abstract ResourceDownloaderBaseImpl
getClone
(ResourceDownloaderBaseImpl _parent) protected Map
protected String
long
getLongProperty
(String key) protected ResourceDownloaderBaseImpl
getProperty
(String name) Warning! URL response properties have a type of 'List of String'protected Object
getProperty
(String name, boolean maybe_delayed) protected Object
getPropertySupport
(String name) getStringProperty
(String key) protected String
protected void
informActivity
(String activity) protected void
informAmountComplete
(long amount) protected boolean
protected void
protected void
informPercentDone
(int percentage) protected boolean
boolean
protected void
void
void
reportActivity
(ResourceDownloader downloader, String activity) void
reportActivity
(String str) void
reportAmountComplete
(ResourceDownloader downloader, long amount) void
reportPercentComplete
(ResourceDownloader downloader, int percentage) protected void
protected void
setParent
(ResourceDownloader _parent) protected void
protected void
protected void
setPropertyRecursive
(String name, Object value) protected void
setPropertySupport
(String name, Object value) protected abstract void
setSize
(long size) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.pif.utils.resourcedownloader.ResourceDownloader
asyncDownload, cancel, download, getName, getSize, setProperty
-
Field Details
-
PR_PROPERTIES_SET
- See Also:
-
listeners
-
result_informed
private boolean result_informed -
result_informed_data
-
parent
-
children
-
download_cancelled
private boolean download_cancelled -
lc_key_properties
-
this_mon
-
-
Constructor Details
-
ResourceDownloaderBaseImpl
-
-
Method Details
-
getClone
- Specified by:
getClone
in interfaceResourceDownloader
-
getClone
-
setSize
protected abstract void setSize(long size) -
getBooleanProperty
- Throws:
ResourceDownloaderException
-
getBooleanProperty
public boolean getBooleanProperty(String key, boolean maybe_delayed) throws ResourceDownloaderException - Throws:
ResourceDownloaderException
-
getLongProperty
- Throws:
ResourceDownloaderException
-
getStringProperty
- Throws:
ResourceDownloaderException
-
getProperty
Description copied from interface:ResourceDownloader
Warning! URL response properties have a type of 'List of String'- Specified by:
getProperty
in interfaceResourceDownloader
- Returns:
- Throws:
ResourceDownloaderException
-
getProperty
- Throws:
ResourceDownloaderException
-
getPropertySupport
-
getLCKeyProperties
-
getStringPropertySupport
-
setPropertiesSet
- Throws:
ResourceDownloaderException
-
setPropertySupport
-
setProperties
-
setPropertyRecursive
- Throws:
ResourceDownloaderException
-
isAnonymous
protected boolean isAnonymous() -
setParent
-
getParent
-
addChild
-
removeChild
-
getChildren
-
getLogIndent
-
addReportListener
-
informPercentDone
protected void informPercentDone(int percentage) -
informAmountComplete
protected void informAmountComplete(long amount) -
reportActivity
- Specified by:
reportActivity
in interfaceResourceDownloader
-
informActivity
-
informComplete
-
informFailed
-
reportActivity
-
reportPercentComplete
-
reportAmountComplete
-
setCancelled
protected void setCancelled() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceResourceDownloader
-
addListener
- Specified by:
addListener
in interfaceResourceDownloader
-
removeListener
- Specified by:
removeListener
in interfaceResourceDownloader
-