Package org.apache.axis2.json.moshi.rpc
Class JsonRpcMessageReceiver
- java.lang.Object
-
- org.apache.axis2.receivers.AbstractMessageReceiver
-
- org.apache.axis2.receivers.AbstractInOutMessageReceiver
-
- org.apache.axis2.rpc.receivers.RPCMessageReceiver
-
- org.apache.axis2.json.moshi.rpc.JsonRpcMessageReceiver
-
- All Implemented Interfaces:
MessageReceiver
public class JsonRpcMessageReceiver extends RPCMessageReceiver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.axis2.receivers.AbstractMessageReceiver
AbstractMessageReceiver.AsyncMessageReceiverWorker
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.receivers.AbstractMessageReceiver
DO_ASYNC, SAVED_MC, SAVED_TCCL, SCOPE, serviceTCCL
-
-
Constructor Summary
Constructors Constructor Description JsonRpcMessageReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
invokeBusinessLogic(MessageContext inMessage, MessageContext outMessage)
reflect and get the Java method - for each i'th param in the java method - get the first child's i'th child -if the elem has an xsi:type attr then find the deserializer for it - if not found, lookup deser for th i'th param (java type) - error if not found - deserialize & save in an object array - end forvoid
invokeService(com.squareup.moshi.JsonReader jsonReader, Object serviceObj, String operation_name, MessageContext outMes)
-
Methods inherited from class org.apache.axis2.receivers.AbstractInOutMessageReceiver
invokeBusinessLogic
-
Methods inherited from class org.apache.axis2.receivers.AbstractMessageReceiver
getSOAPFactory, getTheImplementationObject, makeNewServiceObject, receive, replicateState, restoreThreadContext
-
-
-
-
Method Detail
-
invokeBusinessLogic
public void invokeBusinessLogic(MessageContext inMessage, MessageContext outMessage) throws AxisFault
Description copied from class:RPCMessageReceiver
reflect and get the Java method - for each i'th param in the java method - get the first child's i'th child -if the elem has an xsi:type attr then find the deserializer for it - if not found, lookup deser for th i'th param (java type) - error if not found - deserialize & save in an object array - end for - invoke method and get the return value - look up serializer for return value based on the value and type - create response msg and add return value as grand child of- Overrides:
invokeBusinessLogic
in classRPCMessageReceiver
- Parameters:
inMessage
- incoming MessageContextoutMessage
- outgoing MessageContext- Throws:
AxisFault
-
invokeService
public void invokeService(com.squareup.moshi.JsonReader jsonReader, Object serviceObj, String operation_name, MessageContext outMes) throws AxisFault
- Throws:
AxisFault
-
-