org.gudy.azureus2.core3.tracker.client.impl
Class TRTrackerScraperImpl
java.lang.Object
org.gudy.azureus2.core3.tracker.client.impl.TRTrackerScraperImpl
- All Implemented Interfaces:
- TRTrackerScraper
public class TRTrackerScraperImpl
- extends java.lang.Object
- implements TRTrackerScraper
Method Summary |
void |
addListener(TRTrackerScraperListener l)
|
static TRTrackerScraperImpl |
create()
|
TRTrackerScraperClientResolver |
getClientResolver()
|
java.lang.String[] |
getEnabledNetworks(HashWrapper hash)
|
java.lang.Object[] |
getExtensions(HashWrapper hash)
|
boolean |
isNetworkEnabled(HashWrapper hash,
java.net.URL url)
|
boolean |
isTorrentScrapable(HashWrapper hash)
|
TRTrackerScraperResponse |
peekScrape(TOTorrent torrent,
java.net.URL target_url)
|
boolean |
redirectTrackerUrl(HashWrapper hash,
java.net.URL old_url,
java.net.URL new_url)
|
void |
remove(TOTorrent torrent)
|
void |
removeListener(TRTrackerScraperListener l)
|
TRTrackerScraperResponse |
scrape(TOTorrent torrent)
|
TRTrackerScraperResponse |
scrape(TOTorrent torrent,
boolean force)
|
TRTrackerScraperResponse |
scrape(TOTorrent torrent,
java.net.URL target_url)
|
TRTrackerScraperResponse |
scrape(TOTorrent torrent,
java.net.URL target_url,
boolean force)
|
TRTrackerScraperResponse |
scrape(TRTrackerAnnouncer tracker_client)
|
void |
scrapeReceived(TRTrackerScraperResponse response)
|
void |
setClientResolver(TRTrackerScraperClientResolver resolver)
|
void |
setScrape(TOTorrent torrent,
java.net.URL target_url,
DownloadScrapeResult result)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRTrackerScraperImpl
protected TRTrackerScraperImpl()
create
public static TRTrackerScraperImpl create()
scrape
public TRTrackerScraperResponse scrape(TOTorrent torrent)
- Specified by:
scrape
in interface TRTrackerScraper
scrape
public TRTrackerScraperResponse scrape(TOTorrent torrent,
java.net.URL target_url)
- Specified by:
scrape
in interface TRTrackerScraper
scrape
public TRTrackerScraperResponse scrape(TOTorrent torrent,
boolean force)
- Specified by:
scrape
in interface TRTrackerScraper
setScrape
public void setScrape(TOTorrent torrent,
java.net.URL target_url,
DownloadScrapeResult result)
- Specified by:
setScrape
in interface TRTrackerScraper
scrape
public TRTrackerScraperResponse scrape(TOTorrent torrent,
java.net.URL target_url,
boolean force)
peekScrape
public TRTrackerScraperResponse peekScrape(TOTorrent torrent,
java.net.URL target_url)
- Specified by:
peekScrape
in interface TRTrackerScraper
scrape
public TRTrackerScraperResponse scrape(TRTrackerAnnouncer tracker_client)
- Specified by:
scrape
in interface TRTrackerScraper
remove
public void remove(TOTorrent torrent)
- Specified by:
remove
in interface TRTrackerScraper
scrapeReceived
public void scrapeReceived(TRTrackerScraperResponse response)
setClientResolver
public void setClientResolver(TRTrackerScraperClientResolver resolver)
- Specified by:
setClientResolver
in interface TRTrackerScraper
getClientResolver
public TRTrackerScraperClientResolver getClientResolver()
isTorrentScrapable
public boolean isTorrentScrapable(HashWrapper hash)
isNetworkEnabled
public boolean isNetworkEnabled(HashWrapper hash,
java.net.URL url)
getEnabledNetworks
public java.lang.String[] getEnabledNetworks(HashWrapper hash)
getExtensions
public java.lang.Object[] getExtensions(HashWrapper hash)
redirectTrackerUrl
public boolean redirectTrackerUrl(HashWrapper hash,
java.net.URL old_url,
java.net.URL new_url)
addListener
public void addListener(TRTrackerScraperListener l)
- Specified by:
addListener
in interface TRTrackerScraper
removeListener
public void removeListener(TRTrackerScraperListener l)
- Specified by:
removeListener
in interface TRTrackerScraper