Class TrackerFactory
- java.lang.Object
-
- org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory
-
public class TrackerFactory extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrackerFactory.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ITracker>getTrackerFor(String trackerUrl)Either creates or returns the tracker implementation for the given urlList<ITracker>getTrackersHavingTorrent(Torrent torrent)StringtoString()
-
-
-
Method Detail
-
getTrackerFor
public Optional<ITracker> getTrackerFor(String trackerUrl)
Either creates or returns the tracker implementation for the given url- Parameters:
trackerUrl- The url (including protocol) at which the tracker is available- Returns:
- The tracker instance which handles the connection to the given url
- Throws:
IllegalArgumentException- When the given tracker URL doesn't contain a protocol definition or an incomplete definition.
-
-