jBittorrentAPI
Class ConnectionManager
java.lang.Object
jBittorrentAPI.ConnectionManager
public class ConnectionManager
- extends java.lang.Object
Provides methods for interaction with remote host, like downloading or uploading
files using HTTP protocol.
Method Summary |
static boolean |
downloadFile(java.lang.String host,
int port,
java.lang.String filename,
java.lang.String renameFile)
Download a file from a web site and save it according to the provided path |
static boolean |
publish(java.lang.String torrentPath)
|
static boolean |
publish(java.lang.String torrentPath,
java.lang.String trackerName,
java.lang.String username,
java.lang.String pwd,
java.lang.String torrentRename,
java.lang.String info,
java.lang.String comment,
java.lang.String catid)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionManager
public ConnectionManager()
downloadFile
public static boolean downloadFile(java.lang.String host,
int port,
java.lang.String filename,
java.lang.String renameFile)
- Download a file from a web site and save it according to the provided path
- Parameters:
host
- Name of the host the torrent is located onport
- Port of the host that provides the torrent filefilename
- Path of the file on the hostrenameFile
- Path where the torrent will be saved
- Returns:
- boolean True if the file has been successfully downloaded, false otherwise
publish
public static boolean publish(java.lang.String torrentPath)
publish
public static boolean publish(java.lang.String torrentPath,
java.lang.String trackerName,
java.lang.String username,
java.lang.String pwd,
java.lang.String torrentRename,
java.lang.String info,
java.lang.String comment,
java.lang.String catid)