Type:
Class
Constants:
ERR_METHOD_MISSING : 1
ERR_UNCAUGHT_EXCEPTION : 2
ERR_MC_WRONG_PARAM : 3
ERR_MC_MISSING_PARAMS : 4
ERR_MC_MISSING_METHNAME : 5
ERR_MC_RECURSIVE_CALL : 6
ERR_MC_WRONG_PARAM_PARAMS : 7
ERR_MC_EXPECTED_STRUCT : 8

This is the base class for all XML-RPC server-types (CGI, standalone). You can add handler and set a default handler. Do not use this server, as this is/should be an abstract class.

How the method to call is found

The arity (number of accepted arguments) of a handler (method or Proc object) is compared to the given arguments submitted by the client for a RPC, or Remote Procedure Call.

A handler is only called if it accepts the number of arguments, otherwise the search for another handler will go on. When at the end no handler was found, the default_handler, #set_default_handler will be called.

With this technique it is possible to do overloading by number of parameters, but only for Proc handler, because you cannot define two methods of the same name in the same class.

add_introspection

add_introspection() Instance Public methods Adds the introspection handlers

2015-06-13 15:12:24
get_default_handler

get_default_handler() Instance Public methods Returns the default-handler, which

2015-06-13 15:18:36
get_service_hook

get_service_hook() Instance Public methods Returns the service-hook, which is

2015-06-13 15:20:54
process

process(data) Instance Public methods

2015-06-13 15:25:10
add_handler

add_handler(prefix, obj_or_signature=nil, help=nil, &block) Instance Public methods Adds

2015-06-13 15:11:34
add_multicall

add_multicall() Instance Public methods Adds the multi-call handler "system

2015-06-13 15:15:40
set_service_hook

set_service_hook(&handler) Instance Public methods A service-hook is called

2015-06-13 15:32:41
new

new(class_delim=".") Class Public methods Creates a new

2015-06-13 15:07:06
set_default_handler

set_default_handler(&handler) Instance Public methods Sets handler

2015-06-13 15:30:05