org.sr.server.json
Class JSONCaller

java.lang.Object
  extended by org.sr.server.json.JSONCaller
All Implemented Interfaces:
ICaller<JSONObject>, IJSONCaller

public class JSONCaller
extends java.lang.Object
implements IJSONCaller

This class is offers a convinient way to access and call java object methods with JSON object in a caller context.

Author:
Serhat Dirik

Constructor Summary
JSONCaller()
           
 
Method Summary
 JSONObject callAService(ICallerContextInfo<?> context, JSONObject request)
          Calls a java object method and returns the response
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONCaller

public JSONCaller()
Method Detail

callAService

public JSONObject callAService(ICallerContextInfo<?> context,
                               JSONObject request)
                        throws ServiceCallException
Description copied from interface: ICaller
Calls a java object method and returns the response

Specified by:
callAService in interface ICaller<JSONObject>
Specified by:
callAService in interface IJSONCaller
Parameters:
context - Caller context
Returns:
Throws:
ServiceCallException
See Also:
ICaller.callAService