当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档
RPCProvider (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档
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, 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
Method Summary |
protected void |
checkMethodName(MessageContext msgContext,
String allowedMethods,
String methodName)
Throw an AxisFault if the requested method is not allowed. |
RPCInvocation |
createRPCInvocation(MessageContext msgContext,
SOAPEnvelopeAxisImpl reqEnv,
SOAPEnvelopeAxisImpl resEnv,
Object obj)
|
protected Object |
invokeMethod(MessageContext msgContext,
Method method,
Object obj,
Object[] argValues)
This method encapsulates the method invocation. |
protected Object |
invokeTarget(RPCInvocation invocation)
Unwraps the invocation and calls invokeMethod |
void |
processMessage(MessageContext msgContext,
SOAPEnvelopeAxisImpl reqEnv,
SOAPEnvelopeAxisImpl resEnv,
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, setOptionsLockable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RPC_INVOCATION
public static final String RPC_INVOCATION
- The key for the invocation object in the MessageContext
- See Also:
- Constant Field Values
RPCProvider
public RPCProvider()
processMessage
public void processMessage(MessageContext msgContext,
SOAPEnvelopeAxisImpl reqEnv,
SOAPEnvelopeAxisImpl resEnv,
Object obj)
throws Exception
- Process the current message.
Result in resEnv.
- Specified by:
processMessage
in class JavaProvider
- Parameters:
msgContext
- self-explanatoryreqEnv
- the request enveloperesEnv
- the response envelopeobj
- the service object itself
- Throws:
Exception
createRPCInvocation
public RPCInvocation createRPCInvocation(MessageContext msgContext,
SOAPEnvelopeAxisImpl reqEnv,
SOAPEnvelopeAxisImpl resEnv,
Object obj)
invokeTarget
protected Object invokeTarget(RPCInvocation invocation)
throws Exception
- Unwraps the invocation and calls invokeMethod
- Parameters:
invocation
- The invocation
- Returns:
- Return value from invokeMethod
- Throws:
Exception
- Any client 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
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.