Bernard Nauwelaerts

NAME

OMA::Download::OTA - Perl extension for creating download descriptor objects according to the OMA Download OTA 1.0 specification.

DESCRIPTION

Complete implementation of the Open Mobile Alliance Download Over The Air 1.0 specification.

SYNOPSIS

  use OMA::Download::OTA;
  

CONSTRUCTOR

new

  my $ota = OMA::Download::OTA->new(%properties);

PROPERTIES

name

Get or set the download name

  print $ota->name;
  
  $ota->name('Nice download');

vendor

Get or set the download vendor name

  print $ota->vendor;
  
  $ota->vendor('My Cool Company');

type

Get or set the download MIME type

  print $ota->type;
  
  $ota->type('image/gif');

size

Get or set the download file size

  print $ota->size;
  
  $ota->size(65536);

description

Get or set the download description

  print $ota->description
  
  $ota->description('A nice picture of the Moon');

objectURI

Get or set the download object URI

  print $ota->objectURI;
  
  $ota->objectURI('http://example.com/image123.gif');

installNotifyURI

Get or set the intall notificatition URI.

  print $ota->installNotifyURI;
  
  $ota->installNotifyURI('http://example.com/notify.cgi');

nextURL

Get or set the next URL

  print $ota->nextURL;
  
  $ota->nextURL('http://example.com/complete.html');

DDVersion

Get or set the download descriptor version. Defaults to 1.0.

  print $ota->DDVersion;
  
  $ota->DDVersion('1.0');

infoURL

Get or set the donwload info URL

  print $ota->infoURL;
  
  $ota->infoURL('http://example.com/moon.html');

iconURI

Get or set the download icon URI

  print $ota->iconURI;
  
  $ota->iconURI('http://example.com/moon.gif');

installParam

Get or set intall parameter

mime

Returns the Download Descriptor MIME type

  print $ota->mime;

METHODS

packit

Returns the Download Descriptor

  print $ota->packit;

SEE ALSO

OMA Download OTA Specifications

AUTHOR

Bernard Nauwelaerts, <bpgn@cpan.org>

COPYRIGHT AND LICENSE

Released under the GPL. See LICENCE for details.

Copyright (C) 2006 by Bernard Nauwelaerts