NAME
XRI::Descriptor::LocalAccess - Local access objects from an XRI Descriptor
SYNOPSIS
use XRI::Descriptor::LocalAccess;
my $localAccess = XRI::Descriptor::LocalAccess->new;
$localAccess->service('xri:$r.a/X2R'); # sets service
$localAccess->addType('text/html'); # sets media types
$localAccess->addType('image/jpeg');
$localAccess->uris(['http://www.idcommons.net/',
'http://www.2idi.com/']);
DESCRIPTION
XRI::Descriptor generates XRI::Descriptor::LocalAccess objects when parsing an XRIDescriptor XML file. These objects, described in the XML Schema for XRIDescriptor, have three fields:
service -- optional. Indicates the type of service.
URI -- 1 or more. Indicates URIs at which service can be requested.
type -- 0 or more. MIME types for media supported by service.
METHODS
new()
Constructor. Creates an unpopulated object.
Accessors/Mutators
service($service)
uris(\@uris)
types(\@types)
AUTHOR
Eugene Eric Kim, <eekim@blueoxen.org>