Toru Yamaguchi > XRI-Resolution-Lite-0.01 > XRI::Resolution::Lite

Download:
XRI-Resolution-Lite-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source   Latest Release: XRI-Resolution-Lite-0.02

NAME ^

XRI::Resolution::Lite - The LightWeight client module for XRI Resolution

VERSION ^

version 0.01

SYNOPSIS ^

  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');

METHODS ^

new

$args

This param must be HASH reference. Available 2 fields.

ua

(Optional) LWP::UserAgent object or its inheritance.

resolver

(Optional) URI string of XRI Proxy Resolver. If this param is omitted, using XRI Global Proxy Resolver, "http://xri.net/", as resover.

resolve($qxri, $args)

If a resolution is succeed, return <XML::LibXML::Document> object. if not succeed then return undef.

$qxri

Query XRI string. For example :

  =zigorou
  @perlmongers
$args

This param must be HASH reference. Available 3 fields.

format

Resolution Output Format. This param would be '_xrd_r' query parameter.

type

Service Type. This param would be '_xrd_t' query parameter.

media

Service Media Type. This param would be '_xrd_m' query parameter.

SEE ALSO ^

http://docs.oasis-open.org/xri/xri-resolution/2.0/specs/cd03/xri-resolution-V2.0-cd-03.html

There are XRI Resolution spec in OASIS.

AUTHOR ^

Toru Yamaguchi, <zigorou@cpan.org>

BUGS ^

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 & LICENSE ^

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.