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:
- Handler, java.io.Serializable
- Direct Known Subclasses:
- EJBProvider
- public class RPCProvider
- extends JavaProvider
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:
- Serialized Form
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
Method Summary |
protected void |
checkMethodName(MessageContext msgContext,
java.lang.String allowedMethods,
java.lang.String methodName)
Throw an AxisFault if the requested method is not allowed. |
protected java.lang.Object |
invokeMethod(MessageContext msgContext,
java.lang.reflect.Method method,
java.lang.Object obj,
java.lang.Object[] argValues)
This method encapsulates the method invocation. |
void |
processMessage(MessageContext msgContext,
java.lang.String serviceName,
java.lang.String allowedMethods,
SOAPEnvelope reqEnv,
SOAPEnvelope resEnv,
JavaClass jc,
java.lang.Object obj)
Process the current message. |
Methods inherited from class org.apache.axis.handlers.BasicHandler |
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
RPCProvider
public RPCProvider()
processMessage
public void processMessage(MessageContext msgContext,
java.lang.String serviceName,
java.lang.String allowedMethods,
SOAPEnvelope reqEnv,
SOAPEnvelope resEnv,
JavaClass jc,
java.lang.Object obj)
throws java.lang.Exception
- Process the current message.
Result in resEnv.
- Overrides:
processMessage
in class JavaProvider
- Parameters:
msgContext
- self-explanatoryserviceName
- the class name of the ServiceHandlerallowedMethods
- the 'method name' of dittoreqEnv
- the request enveloperesEnv
- the response envelopejc
- the JavaClass of the service objectobj
- the service object itself
invokeMethod
protected java.lang.Object invokeMethod(MessageContext msgContext,
java.lang.reflect.Method method,
java.lang.Object obj,
java.lang.Object[] argValues)
throws java.lang.Exception
- This method encapsulates the method invocation.
- Parameters:
MessageContext
- Method
- is the target method.Object
- is the target objectObject[]
- are the method arguments
checkMethodName
protected void checkMethodName(MessageContext msgContext,
java.lang.String allowedMethods,
java.lang.String methodName)
throws java.lang.Exception
- Throw an AxisFault if the requested method is not allowed.
- Parameters:
MessageContext
- String
- list of allowed methodsString
- name of target method
Copyright © 2002 Apache XML Project. All Rights Reserved.