1JSON::RPC::Common::ProcUesdeurreC:o:nCtarlilb(u3t)ed PerJlSODNo:c:uRmPeCn:t:aCtoimomnon::Procedure::Call(3)
2
3
4

NAME

6       JSON::RPC::Common::Procedure::Call - JSON RPC Procedure Call base
7       class.
8

SYNOPSIS

10               use JSON::RPC::Common::Procedure::Call;
11
12               my $req = JSON::RPC::Common::Procedure::Call->inflate({ ... });
13
14               warn "HALLO JSONRPC VERSION " . $req->version;
15

DESCRIPTION

17       A JSON-RPC Procedure Call (ed: *rolls eys*, what was wrong with
18       "request"?) is either a notification or a method invocation in JSON-
19       PRC.
20
21       See http://json-rpc.org/wiki/specification <http://json-
22       rpc.org/wiki/specification> for more details.
23

ATTRIBUTES

25       All attributes are read only unless otherwise specified.
26
27       version
28       id  The request ID.
29
30           Used to correlate a request to a response.
31
32       method
33           The name of the method to invoke.
34
35       params
36           Returns a reference to the parameters hash or array.
37
38       return_class
39       error_class
40           The classes to instantiate the response objects.
41
42           These vary per subclass.
43

METHODS

45       inflate
46           A factory constructor. Delegates to "new" on a subclass based on
47           the protocol version.
48
49           This is the recommended constructor.
50
51       deflate
52           Flatten to JSON data
53
54       new The actual constructor.
55
56           Not intended for normal use on this class, you should use a
57           subclass most of the time.
58
59           Calling "JSON::RPC::Common::Procedure::Call->new" will construct a
60           call with an undefined version, which cannot be deflated (and thus
61           sent over the wire). This is still useful for testing your own
62           code's RPC hanlding, so this is not allowed.
63
64       params_list
65           Dereferences "params" regardless of representation.
66
67           Returns a list of positionals or a key/value list.
68
69       return_result $result
70       return_error %error_params
71           Create a new JSON::RPC::Common::Procedure::Return with or without
72           an error.
73
74       is_notification
75           Whether this request is a notification (a method that does not need
76           a response).
77
78       is_service
79           Whether this request is a JSON-RPC 1.1 service method (e.g.
80           "system.describe").
81
82           This method is always false for 1.0 and 2.0.
83
84       call $obj
85           A convenience method to invoke the call on $obj and create a new
86           return with the return value.
87
88
89
90perl v5.12.0                      2009-01-J1S0ON::RPC::Common::Procedure::Call(3)
Impressum