| 1 |
cvsjoko |
1.1 |
############################################################################### |
| 2 |
|
|
# |
| 3 |
|
|
# This file copyright (c) 2001 by Randy J. Ray, all rights reserved |
| 4 |
|
|
# |
| 5 |
|
|
# Copying and distribution are permitted under the terms of the Artistic |
| 6 |
|
|
# License as distributed with Perl versions 5.005 and later. See |
| 7 |
|
|
# http://language.perl.com/misc/Artistic.html |
| 8 |
|
|
# |
| 9 |
|
|
############################################################################### |
| 10 |
|
|
# |
| 11 |
|
|
# $Id: Method.pm,v 1.7 2002/01/19 09:46:41 rjray Exp $ |
| 12 |
|
|
# |
| 13 |
|
|
# Description: This is now an empty sub-class of RPC::XML::Procedure. |
| 14 |
|
|
# It is given its own file to allow for a minimal manual |
| 15 |
|
|
# page redirecting people to the newer class. |
| 16 |
|
|
# |
| 17 |
|
|
# Functions: None. |
| 18 |
|
|
# |
| 19 |
|
|
# Libraries: RPC::XML::Procedure |
| 20 |
|
|
# |
| 21 |
|
|
# Global Consts: $VERSION |
| 22 |
|
|
# |
| 23 |
|
|
# Environment: None. |
| 24 |
|
|
# |
| 25 |
|
|
############################################################################### |
| 26 |
|
|
|
| 27 |
|
|
package RPC::XML::Method; |
| 28 |
|
|
|
| 29 |
|
|
use 5.005; |
| 30 |
|
|
use strict; |
| 31 |
|
|
use vars qw($VERSION); |
| 32 |
|
|
|
| 33 |
|
|
require RPC::XML::Procedure; |
| 34 |
|
|
|
| 35 |
|
|
@RPC::XML::Method::ISA = qw(RPC::XML::Procedure); |
| 36 |
|
|
$VERSION = do { my @r=(q$Revision: 1.7 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r }; |
| 37 |
|
|
|
| 38 |
|
|
1; |
| 39 |
|
|
|
| 40 |
|
|
__END__ |
| 41 |
|
|
|
| 42 |
|
|
=head1 NAME |
| 43 |
|
|
|
| 44 |
|
|
RPC::XML::Method - Object encapsulation of server-side RPC methods |
| 45 |
|
|
|
| 46 |
|
|
=head1 SYNOPSIS |
| 47 |
|
|
|
| 48 |
|
|
require RPC::XML::Method; |
| 49 |
|
|
|
| 50 |
|
|
... |
| 51 |
|
|
$method_1 = RPC::XML::Method->new({ name => 'system.identity', |
| 52 |
|
|
code => sub { ... }, |
| 53 |
|
|
signature => [ 'string' ] }); |
| 54 |
|
|
$method_2 = RPC::XML::Method->new('/path/to/status.xpl'); |
| 55 |
|
|
|
| 56 |
|
|
=head1 DESCRIPTION |
| 57 |
|
|
|
| 58 |
|
|
This package is no longer a distinct, separate entity. It has become an empty |
| 59 |
|
|
sub-class of B<RPC::XML::Procedure>. Please see L<RPC::XML::Procedure> for |
| 60 |
|
|
details on the methods and usage. |
| 61 |
|
|
|
| 62 |
|
|
By the time of 1.0 release of this software package, this file will be removed |
| 63 |
|
|
completely. |
| 64 |
|
|
|
| 65 |
|
|
=head1 LICENSE |
| 66 |
|
|
|
| 67 |
|
|
This module is licensed under the terms of the Artistic License that covers |
| 68 |
|
|
Perl. See <http://language.perl.com/misc/Artistic.html> for the |
| 69 |
|
|
license. |
| 70 |
|
|
|
| 71 |
|
|
=head1 SEE ALSO |
| 72 |
|
|
|
| 73 |
|
|
L<RPC::XML::Procedure> |
| 74 |
|
|
|
| 75 |
|
|
=head1 AUTHOR |
| 76 |
|
|
|
| 77 |
|
|
Randy J. Ray <rjray@blackperl.com> |
| 78 |
|
|
|
| 79 |
|
|
=cut |
| 80 |
|
|
|
| 81 |
|
|
__END__ |