debian man page for json::rpc::procedure

Query: json::rpc::procedure

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

JSON::RPC::Procedure(3pm)				User Contributed Perl Documentation				 JSON::RPC::Procedure(3pm)

NAME
JSON::RPC::Procedure - JSON-RPC Service attributes
SYNOPSIS
package MyApp; use base ('JSON::RPC::Procedure'); sub sum : Public { my ($s, @arg) = @_; return $arg[0] + $arg[1]; } # or sub sum : Public(a, b) { my ($s, $obj) = @_; return $obj->{a} + $obj->{b}; } # or sub sum : Number(a:num, b:num) { my ($s, $obj) = @_; return $obj->{a} + $obj->{b}; } # private method can't be called by clients sub _foobar : Private { # ... }
DESCRIPTION
Using this module, you can write a subroutine with a special attribute. Currently, in below attributes, only Public and Private are available. Others are same as Public. Public Means that a client can call this procedure. Private Means that a client can't call this procedure. Arr Means that its return values is an array object. Obj Means that its return values is a member object. Bit Bool Means that a return values is a "true" or "false". Num Means that its return values is a number. Str Means that its return values is a string. Nil None Means that its return values is a "null".
TODO
Auto Service Description Type check
SEE ALSO
<http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html>
AUTHOR
Makamaka Hannyaharamitu, <makamaka[at]cpan.org>
COPYRIGHT AND LICENSE
Copyright 2007 by Makamaka Hannyaharamitu This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2008-09-01 JSON::RPC::Procedure(3pm)
Related Man Pages
json::rpc::client(3pm) - debian
json::rpc::procedure(3pm) - debian
json::rpc::server::apache2(3pm) - debian
jifty::json(3pm) - debian
mojo::json(3pm) - debian
Similar Topics in the Unix Linux Community
Bilski - What It Means, Part 3 - The Mayer Dissent and Some Intangibility Questions
Bilski: What It Means, Part 2 -- Listening to the Dissenting Opinions - Updated
Executing Procedure from shell script..
Unable to execute Stored Procedure from CRON
Private string embedded inside C code.