Detailed reference of prototypes, properties and methods available in the
Javascript environment of your Helma web applications.

Fields and methods of the jala.BitTorrent class.
jala BitTorrent(trackerUrl, filePath)
Constructs a new BitTorrent file.
parameters
String trackerUrl The URL string of the tracker.
String filePath The path to the original file.
methods
  • set(name, value)
Methods
jala.BitTorrent. keys()
Get all available property names.
returns
The list of property names.
jala.BitTorrent. get(name)
Get a torrent property.
parameters
String name The name of the property.
returns
The value of the property.
jala.BitTorrent. set(name, value)
Set a torrent property.
parameters
String name The name of the property.
Object value The property's value.
jala.BitTorrent. getCreationDate()
Get the creation date of the torrent.
returns
The torrent's creation date.
jala.BitTorrent. setCreationDate(date)
Set the creation date of the torrent.
parameters
Date date The desired creation date.
jala.BitTorrent. getPieceLength()
Get the piece length of the torrent.
returns
The torrent's piece length.
jala.BitTorrent. setPieceLength(length)
Set the piece length of the torrent.
parameters
Number length The desired piece length.
jala.BitTorrent. getTorrentFile()
Returns the underlying torrent file.
returns
The torrent file.
jala.BitTorrent. getSourceFile()
Returns the underlying source file.
returns
The source file.
jala.BitTorrent. save(filename)
Saves the torrent as file.
parameters
String filename An optional name for the torrent file. If no name is given it will be composed from name of source file as defined in the torrent plus the ending ".torrent".
jala.BitTorrent. toString()
Get a string representation of the torrent.
returns
The torrent as string.
jala. BitTorrent.bencode(obj)
The bencode method. Turns an arbitrary JavaScript object structure into a corresponding encoded string.
parameters
Object obj The target JavaScript object.
returns
The encoded string.
jala. BitTorrent.bdecode(code)
The bdecode method. Turns an encoded string into a corresponding JavaScript object structure. FIXME: Handle with caution...
parameters
String code The encoded string.
returns
The decoded JavaScript structure.
Fri, 05 Feb 2010 17:40:06 GMT.

core framework

optional modules

java libraries

properties files