Java wrapper for the µTorrent Web API.
This library allows java developers to easily access the µTorrent Web API and control it using Java. It provides a clean facade object over the µTorrent JSON API, and supports automatic updating and caching of results.
It has been developed using Java 8. It implements all the operations allowed through the Web API:
- List torrents
- Add torrents via URL and File
- Operations on torrents (start, pause, stop, delete, etc...)
- Retrieve and update client properties
- Set files priority
Enable the web UI in µTorrent: http://help.utorrent.com/customer/portal/articles/1573941
ConnectionParams connectionParams = ConnectionParams.builder()
.withScheme("http")
.withCredentials("username", "password")
.enableAuthentication(true)
.withAddress("host.com", 8080)
.withTimeout(1500)
.create();
UTorrentWebAPIClient client = UTorrentWebAPIClient.getClient(connectionParams);
Set<Torrent> torrents = client.getAllTorrents();
client.addTorrent(new File("filePath"));
client.stopTorrent("torrent_hash");