jBittorrentAPI
Class ConnectionManager

java.lang.Object
  extended by jBittorrentAPI.ConnectionManager

public class ConnectionManager
extends java.lang.Object

Provides methods for interaction with remote host, like downloading or uploading files using HTTP protocol.


Constructor Summary
ConnectionManager()
           
 
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
 

Constructor Detail

ConnectionManager

public ConnectionManager()
Method Detail

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 on
port - Port of the host that provides the torrent file
filename - Path of the file on the host
renameFile - 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)