Package expedient :: Package common :: Package rpc4django :: Module xmlrpcdispatcher :: Class XMLRPCDispatcher
[hide private]
[frames] | no frames]

Class XMLRPCDispatcher

source code


Encodes and decodes XMLRPC messages, dispatches to the requested method and returns any responses or errors in encoded XML.

This class is modified from the built-in python version so that it can also pass the HttpRequest object from the underlying request

Instance Methods [hide private]
 
__init__(self) source code
 
dispatch(self, data, **kwargs)
Extracts the xml marshaled parameters and method name and calls the underlying method and returns either an xml marshaled response or an XMLRPC fault
source code
 
_dispatch(self, method, params, **kwargs)
Dispatches the method with the parameters to the underlying method
source code

Inherited from SimpleXMLRPCServer.SimpleXMLRPCDispatcher: register_function, register_instance, register_introspection_functions, register_multicall_functions, system_listMethods, system_methodHelp, system_methodSignature, system_multicall

Inherited from SimpleXMLRPCServer.SimpleXMLRPCDispatcher (private): _marshaled_dispatch

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__

dispatch(self, data, **kwargs)

source code 

Extracts the xml marshaled parameters and method name and calls the underlying method and returns either an xml marshaled response or an XMLRPC fault

Although very similar to the superclass' _marshaled_dispatch, this method has a different name due to the different parameters it takes from the superclass method.

_dispatch(self, method, params, **kwargs)

source code 

Dispatches the method with the parameters to the underlying method

Overrides: SimpleXMLRPCServer.SimpleXMLRPCDispatcher._dispatch