1MooseX::Role::XMLRPC::CUlsieerntC(o3n)tributed Perl DocuMmoeonsteaXt:i:oRnole::XMLRPC::Client(3)
2
3
4

NAME

6       MooseX::Role::XMLRPC::Client - provide the needed bits to be a XML-RPC
7       client
8

SYNOPSIS

10           package MultipleWiths;
11           use Moose;
12
13           # ...
14
15           # we don't want to keep any login information here
16           with 'MooseX::Role::XMLRPC::Client' => {
17               name => 'bugzilla',
18               uri  => 'https://bugzilla.redhat.com/xmlrpc.cgi',
19               login_info => 0,
20           };
21
22           # basic info
23           with 'MooseX::Role::XMLRPC::Client' => {
24               name => 'foo',
25               uri  => 'http://foo.org/a/b/c',
26           };
27
28           sub _build_foo_userid { 'userid'   }
29           sub _build_foo_passwd { 'passw0rd' }
30
31           sub foo_login  { 'do login magic here..'   }
32           sub foo_logout { 'do logout magic here...' }
33

DESCRIPTION

35       This is a Moose role that provides methods and attributes needed to
36       enable a class to serve as an XML-RPC client. It is parameterized
37       through MooseX::Role::Parameterized, so you can customize how it embeds
38       in your class.  You can even embed it multiple times with different
39       paramaterization, if it strikes your fancy :-)
40

ROLE PARAMETERS

42       This role generates methods and attributes depending on these
43       parameters.  None of them are required.
44
45   name
46       This parameter defaults to "xlmrpc".  It serves as a prefix to all
47       generated methods and attributes.  File and URI types are coerced.
48
49   uri (URI)
50   login_info (Bool)
51   cookie_jar (File)
52   traits (ArrayRef[Str])
53       An arrayref of traits to apply to the attributes.
54

METHODS/ATTRIBUTES

56       Right now, the best documentation can be found in the tests.
57

SEE ALSO

59       RPC::XML::Client, Moose::Role, MooseX::Role::Parameterized.
60
61       This package is part of the Fedora Project's Perl SIG work.  For more
62       information, see:
63
64           L<http://fedoraproject.org>
65           L<http://fedoraproject.org/wiki/Perl>
66           L<http://camelus.fedorahosted.org>
67

TODO

69       Documentation.  Clearly.  :-)
70

BUGS AND LIMITATIONS

72       There are no known bugs in this module.
73
74       Please report problems to Chris Weyl <cweyl@alumni.drew.edu>, or
75       (preferred) to this package's RT tracker at
76       <bug-MooseX-Role-XMLRPC-Client@rt.cpan.org>.
77
78       Patches are welcome.
79

AUTHOR

81       Chris Weyl  <cweyl@alumni.drew.edu>
82
84       Copyright (c) 2009 Chris Weyl <cweyl@alumni.drew.edu>
85
86       This library is free software; you can redistribute it and/or modify it
87       under the terms of the GNU Lesser General Public License as published
88       by the Free Software Foundation; either version 2.1 of the License, or
89       (at your option) any later version.
90
91       This library is distributed in the hope that it will be useful, but
92       WITHOUT ANY WARRANTY; without even the implied warranty of
93       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
94       Lesser General Public License for more details.
95
96       You should have received a copy of the GNU Lesser General Public
97       License along with this library; if not, write to the
98
99           Free Software Foundation, Inc.
100           59 Temple Place, Suite 330
101           Boston, MA  02111-1307  USA
102
103
104
105perl v5.12.0                      2009-04-29   MooseX::Role::XMLRPC::Client(3)
Impressum