org.apache.axis.providers.java

Class RPCProvider

Implemented Interfaces:
Handler, Serializable
Known Direct Subclasses:
CORBAProvider, EJBProvider, RMIProvider

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)

Field Summary

protected static Log
log

Fields inherited from class org.apache.axis.providers.java.JavaProvider

OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_SCOPE, entLog, log

Fields 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_TARGETNAMESPACE, entLog, log

Fields inherited from class org.apache.axis.handlers.BasicHandler

makeLockable, name, options

Method Summary

protected void
checkMethodName(MessageContext msgContext, String allowedMethods, String methodName)
Throw an AxisFault if the requested method is not allowed.
protected Object
invokeMethod(MessageContext msgContext, Method method, Object obj, Object[] argValues)
This method encapsulates the method invocation.
void
processMessage(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, makeNewServiceObject, processMessage

Methods inherited from class org.apache.axis.providers.BasicProvider

addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNames, initServiceDesc

Methods inherited from class org.apache.axis.handlers.BasicHandler

canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable

Field Details

log

protected static Log log

Method Details

checkMethodName

protected void checkMethodName(MessageContext msgContext,
                               String allowedMethods,
                               String methodName)
            throws Exception
Throw an AxisFault if the requested method is not allowed.
Parameters:
msgContext - MessageContext
allowedMethods - list of allowed methods
methodName - name of target method

invokeMethod

protected Object invokeMethod(MessageContext msgContext,
                              Method method,
                              Object obj,
                              Object[] argValues)
            throws Exception
This method encapsulates the method invocation.
Parameters:
msgContext - MessageContext
method - the target method.
obj - the target object
argValues - the method arguments

processMessage

public void processMessage(MessageContext msgContext,
                           SOAPEnvelope reqEnv,
                           SOAPEnvelope resEnv,
                           Object obj)
            throws Exception
Process the current message. Result in resEnv.
Overrides:
processMessage in interface JavaProvider
Parameters:
msgContext - self-explanatory
reqEnv - the request envelope
resEnv - the response envelope
obj - the service object itself

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.