Package expedient :: Package common :: Package rpc4django :: Module rpcdispatcher :: Class RPCDispatcher
[hide private]
[frames] | no frames]

Class RPCDispatcher

source code

Dispatches method calls to either the xmlrpc or jsonrpc dispatcher

Instance Methods [hide private]
 
__init__(self, url_name='root', restrict_introspection=False) source code
 
system_describe(self)
Returns a simple method description of the methods supported
source code
 
system_listmethods(self)
Returns a list of supported methods
source code
 
system_methodhelp(self, method_name)
Returns documentation for a specified method
source code
 
system_methodsignature(self, method_name)
Returns the signature for a specified method
source code
 
jsondispatch(self, raw_post_data, **kwargs)
Sends the post data to a jsonrpc processor
source code
 
xmldispatch(self, raw_post_data, **kwargs)
Sends the post data to an xmlrpc processor
source code
 
get_method_name(self, raw_post_data, request_format='xml')
Gets the name of the method to be called given the post data and the format of the data
source code
 
list_methods(self)
Returns a list of RPCMethod objects supported by the server
source code
 
register_method(self, method, name=None, signature=None, helpmsg=None)
Registers a method with the rpc server
source code
Method Details [hide private]

system_describe(self)

source code 

Returns a simple method description of the methods supported

Decorators:
  • @rpcmethod(name= 'system.describe', signature= ['struct'])

system_listmethods(self)

source code 

Returns a list of supported methods

Decorators:
  • @rpcmethod(name= 'system.listMethods', signature= ['array'])

system_methodhelp(self, method_name)

source code 

Returns documentation for a specified method

Decorators:
  • @rpcmethod(name= 'system.methodHelp', signature= ['string', 'string'])

system_methodsignature(self, method_name)

source code 

Returns the signature for a specified method

Decorators:
  • @rpcmethod(name= 'system.methodSignature', signature= ['array', 'string'])