JSONRPCService Class Reference

The class representing a JSON-RPC WebService (identified by an URL to call methods to). It handle JSON-RPC v1.0 WebServices. More...

#import <JSONRPCService.h>

List of all members.

Public Member Functions

(id) - initWithURL:version:
(JSONRPCResponseHandler *) - callMethod:
 Method to call a JSON-RPC method on the WebService.
(JSONRPCResponseHandler *) - callMethod:reuseResponseHandler:
 Designed method to call a JSON-RPC method on the WebService.
(JSONRPCResponseHandler *) - callMethodWithName:parameters:
 Commodity method to call a JSON-RPC method on the WebService.
(JSONRPCResponseHandler *) - callMethodWithNameAndParams:
 Commodity method to call a JSON-RPC method on the WebService.
(JSONRPCResponseHandler *) - callMethodWithName:namedParameters:
 Commodity method to call a JSON-RPC method on the WebService.
(JSONRPCResponseHandler *) - callMethodWithNameAndNamedParams:
 Commodity method to call a JSON-RPC method on the WebService.

Static Public Member Functions

(id) + serviceWithURL:version:

Properties

NSURL * serviceURL
 The URL to forward JSONRPC method calls to.
JSONRPCVersion version
 The JSON-RPC version supported by the WebService.
NSObject< JSONRPCDelegate > * delegate
 Object to handle errors if not handled by JSONRPCResponseHandler::delegate .
id proxy
 A proxy object on which you can call any Obj-C message (without any param or with an NSArray as a parameter), and which will be forwarded as a JSONRPC method call.

Detailed Description

The class representing a JSON-RPC WebService (identified by an URL to call methods to). It handle JSON-RPC v1.0 WebServices.


Member Function Documentation

- (JSONRPCResponseHandler *) callMethod: (JSONRPCMethodCall*)  methodCall  

Method to call a JSON-RPC method on the WebService.

Parameters:
methodCall the JSONRPCMethodCall to call
Returns:
a JSONRPCResponseHandler object that allows you to define a delegate, callback and resultClass to use upon the WebService's response.
- (JSONRPCResponseHandler *) callMethod: (JSONRPCMethodCall*)  methodCall
reuseResponseHandler: (JSONRPCResponseHandler*)  responseHandler 

Designed method to call a JSON-RPC method on the WebService.

Parameters:
methodCall the JSONRPCMethodCall to call
responseHandler the JSONRPCResponseHandler to reuse, or nil to use a new one
Returns:
a JSONRPCResponseHandler object that allows you to define a delegate, callback and resultClass to use upon the WebService's response.
- (JSONRPCResponseHandler *) callMethodWithName: (NSString *)  methodName
namedParameters: (NSDictionary*)  params 

Commodity method to call a JSON-RPC method on the WebService.

Parameters:
methodName the name of the method to call on the WebService
params the dictionary of named parameters to pass to the method call
Returns:
a JSONRPCResponseHandler object that allows you to define a delegate, callback and resultClass to use upon the WebService's response.
- (JSONRPCResponseHandler *) callMethodWithName: (NSString *)  methodName
parameters: (NSArray*)  params 

Commodity method to call a JSON-RPC method on the WebService.

Parameters:
methodName the name of the method to call on the WebService
params the array of parameters to pass to the method call
Returns:
a JSONRPCResponseHandler object that allows you to define a delegate, callback and resultClass to use upon the WebService's response.
- (JSONRPCResponseHandler *) callMethodWithNameAndNamedParams: (NSString *)  methodName
,   NS_REQUIRES_NIL_TERMINATION 

Commodity method to call a JSON-RPC method on the WebService.

Parameters:
methodName the name of the method to call on the WebService
NS_REQUIRES_NIL_TERMINATION the subsequent parameters are the parameters values and names for the JSON-RPC method. This list of parameters must have a even number of items, alternating the parameter value with the corresponding parameter name, and must be nil-terminated (as in NSDictionary's dictionaryWithObjectsAndKeys:)
Returns:
a JSONRPCResponseHandler object that allows you to define a delegate, callback and resultClass to use upon the WebService's response.
- (JSONRPCResponseHandler *) callMethodWithNameAndParams: (NSString *)  methodName
,   NS_REQUIRES_NIL_TERMINATION 

Commodity method to call a JSON-RPC method on the WebService.

Parameters:
methodName the name of the method to call on the WebService
NS_REQUIRES_NIL_TERMINATION the subsequent parameters are the parameters sent to the JSON-RPC method. This list of parameters must be nil-terminated.
Returns:
a JSONRPCResponseHandler object that allows you to define a delegate, callback and resultClass to use upon the WebService's response.
- (id) initWithURL: (NSURL*)  url
version: (JSONRPCVersion version 

Designed initializer

Parameters:
url the URL of the WebService.
version the JSON-RPC version supported by the WebService
+ (id) serviceWithURL: (NSURL*)  url
version: (JSONRPCVersion version 

Commodity constructor

Parameters:
url the URL of the WebService.
version the JSON-RPC version supported by the WebService
Generated on Tue Mar 22 22:27:19 2011 for JSONRPC Framework by  doxygen 1.6.3