OMA::Download::OTA - Perl extension for creating download descriptor objects according to the OMA Download OTA 1.0 specification.
Complete implementation of the Open Mobile Alliance Download Over The Air 1.0 specification.
use OMA::Download::OTA;
my $ota = OMA::Download::OTA->new(%properties);
Get or set the download name
print $ota->name; $ota->name('Nice download');
Get or set the download vendor name
print $ota->vendor; $ota->vendor('My Cool Company');
Get or set the download MIME type
print $ota->type; $ota->type('image/gif');
Get or set the download file size
print $ota->size; $ota->size(65536);
Get or set the download description
print $ota->description $ota->description('A nice picture of the Moon');
Get or set the download object URI
print $ota->objectURI; $ota->objectURI('http://example.com/image123.gif');
Get or set the intall notificatition URI.
print $ota->installNotifyURI; $ota->installNotifyURI('http://example.com/notify.cgi');
Get or set the next URL
print $ota->nextURL; $ota->nextURL('http://example.com/complete.html');
Get or set the download descriptor version. Defaults to 1.0.
print $ota->DDVersion; $ota->DDVersion('1.0');
Get or set the donwload info URL
print $ota->infoURL; $ota->infoURL('http://example.com/moon.html');
Get or set the download icon URI
print $ota->iconURI; $ota->iconURI('http://example.com/moon.gif');
Get or set intall parameter
Returns the Download Descriptor MIME type
print $ota->mime;
Returns the Download Descriptor
print $ota->packit;
OMA Download OTA Specifications
Bernard Nauwelaerts, <bpgn@cpan.org>
Released under the GPL. See LICENCE for details.
Copyright (C) 2006 by Bernard Nauwelaerts
To install OMA::Download::OTA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OMA::Download::OTA
CPAN shell
perl -MCPAN -e shell install OMA::Download::OTA
For more information on module installation, please visit the detailed CPAN module installation guide.