| XRI-Resolution-Lite documentation | view source | Contained in the XRI-Resolution-Lite distribution. |
XRI::Resolution::Lite - The Lightweight client module for XRI Resolution
version 0.04
use XML::LibXML::XPathContext;
use XRI::Resolution::Lite;
my $r = XRI::Resolution::Lite->new;
my $xrds = $r->resolve('=zigorou'); ### XML::LibXML::Document
my $ctx = XML::LibXML::XPathContext->new($xrds);
my @services = $ctx->findnodes('//Service');
This param must be HASH reference. Available 2 fields.
(Optional) LWP::UserAgent object or its inheritance.
(Optional) URI string of XRI Proxy Resolver. If this param is omitted, using XRI Global Proxy Resolver, "http://xri.net/", as resolver.
When type parameter is substituted "application/xrds+xml" or "application/xrd+xml", the result would be returned as XML::LibXML::Document object. Substituted "text/uri-list" to type parameter, the result would be returned as url list ARRAY or ARRAYREF.
Query XRI string. For example :
=zigorou @linksafe @id*zigorou
This param must be HASH reference. Available 3 fields. See Section 3.3 of XRI Resolution 2.0. http://docs.oasis-open.org/xri/xri-resolution/2.0/specs/cd03/xri-resolution-V2.0-cd-03.html#_Ref129424065
Resolution Output Format. This param would be '_xrd_r' query parameter.
Service Type. This param would be '_xrd_t' query parameter.
Service Media Type. This param would be '_xrd_m' query parameter.
If you want to specify flag on or off, then substitute to 1 as true, 0 as false.
Specifies use of HTTPS trusted resolution. default value is 0.
Specifies use of SAML trusted resolution. default value is 0.
Specifies whether Refs should be followed during resolution (by default they are followed), default value is 1.
Specifies whether service endpoint selection should be performed. default value is 0.
Specifies whether a default match on a Type service endpoint selection element is allowed. default value is 1.
Specifies whether a default match on a Path service endpoint selection element is allowed. default value is 1.
Specifies whether a default match on a MediaType service endpoint selection element is allowed. default value is 1.
Specifies whether a resolver should automatically construct service endpoint URIs. default value is 0.
Specifies whether automatic canonical ID verification should performed. default value is 1
There are XRI Resolution spec in OASIS.
Toru Yamaguchi, <zigorou@cpan.org>
Please report any bugs or feature requests to
bug-xri-resolution-lite@rt.cpan.org, or through the web interface at
http://rt.cpan.org. I will be notified, and then you'll automatically be
notified of progress on your bug as I make changes.
Copyright 2008 Toru Yamaguchi, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| XRI-Resolution-Lite documentation | view source | Contained in the XRI-Resolution-Lite distribution. |