Package org.apache.axis.providers.java
Class RPCProvider
java.lang.Object
org.apache.axis.handlers.BasicHandler
org.apache.axis.providers.BasicProvider
org.apache.axis.providers.java.JavaProvider
org.apache.axis.providers.java.RPCProvider
- All Implemented Interfaces:
Serializable,Handler
- Direct Known Subclasses:
CORBAProvider,EJBProvider,RMIProvider
Implement message processing by walking over RPCElements of the
envelope body, invoking the appropriate methods on the service object.
- Author:
- Doug Davis (dug@us.ibm.com)
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.axis.providers.java.JavaProvider
entLog, OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_SCOPEFields inherited from class org.apache.axis.providers.BasicProvider
OPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACEFields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckMethodName(MessageContext msgContext, String allowedMethods, String methodName) Throw an AxisFault if the requested method is not allowed.protected RPCElementcreateResponseBody(RPCElement body, MessageContext msgContext, OperationDesc operation, ServiceDesc serviceDesc, Object objRes, SOAPEnvelope resEnv, ArrayList outs) protected RPCElementgetBody(SOAPEnvelope reqEnv, MessageContext msgContext) protected OperationDescgetOperationDesc(MessageContext msgContext, RPCElement body) protected ObjectinvokeMethod(MessageContext msgContext, Method method, Object obj, Object[] argValues) This method encapsulates the method invocation.voidprocessMessage(MessageContext msgContext, SOAPEnvelope reqEnv, SOAPEnvelope resEnv, Object obj) Process the current message.Methods inherited from class org.apache.axis.providers.java.JavaProvider
getServiceClass, getServiceClassName, getServiceClassNameOptionName, getServiceObject, initServiceDesc, invoke, makeNewServiceObjectMethods inherited from class org.apache.axis.providers.BasicProvider
addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNamesMethods inherited from class org.apache.axis.handlers.BasicHandler
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
-
Field Details
-
log
protected static org.apache.commons.logging.Log log
-
-
Constructor Details
-
RPCProvider
public RPCProvider()
-
-
Method Details
-
processMessage
public void processMessage(MessageContext msgContext, SOAPEnvelope reqEnv, SOAPEnvelope resEnv, Object obj) throws Exception Process the current message. Result in resEnv.- Specified by:
processMessagein classJavaProvider- Parameters:
msgContext- self-explanatoryreqEnv- the request enveloperesEnv- the response envelopeobj- the service object itself- Throws:
Exception
-
getBody
- Throws:
Exception
-
getOperationDesc
protected OperationDesc getOperationDesc(MessageContext msgContext, RPCElement body) throws SAXException, AxisFault - Throws:
SAXExceptionAxisFault
-
createResponseBody
protected RPCElement createResponseBody(RPCElement body, MessageContext msgContext, OperationDesc operation, ServiceDesc serviceDesc, Object objRes, SOAPEnvelope resEnv, ArrayList outs) throws Exception - Throws:
Exception
-
invokeMethod
protected Object invokeMethod(MessageContext msgContext, Method method, Object obj, Object[] argValues) throws Exception This method encapsulates the method invocation.- Parameters:
msgContext- MessageContextmethod- the target method.obj- the target objectargValues- the method arguments- Throws:
Exception
-
checkMethodName
protected void checkMethodName(MessageContext msgContext, String allowedMethods, String methodName) throws Exception Throw an AxisFault if the requested method is not allowed.- Parameters:
msgContext- MessageContextallowedMethods- list of allowed methodsmethodName- name of target method- Throws:
Exception
-