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

BUGS AND LIMITATIONS

62       There are no known bugs in this module.
63
64       Please report problems to Chris Weyl <cweyl@alumni.drew.edu>, or
65       (preferred) to this package's RT tracker at
66       <bug-MooseX-Role-XMLRPC-Client@rt.cpan.org>.
67
68       Patches are welcome.
69

AUTHOR

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