public abstract class JavaProvider extends BasicProvider
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
entLog |
protected static org.apache.commons.logging.Log |
log |
static String |
OPTION_ALLOWEDMETHODS |
static String |
OPTION_CLASSNAME |
static String |
OPTION_SCOPE |
OPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACEmakeLockable, name, options| Constructor and Description |
|---|
JavaProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected Class |
getServiceClass(String clsName,
SOAPService service,
MessageContext msgContext)
Returns the Class info about the service class.
|
protected String |
getServiceClassName(Handler service)
Return the class name of the service
|
protected String |
getServiceClassNameOptionName()
Return the option in the configuration that contains the service class
name
|
Object |
getServiceObject(MessageContext msgContext,
Handler service,
String clsName,
IntHolder scopeHolder)
Get the service object whose method actually provides the service.
|
void |
initServiceDesc(SOAPService service,
MessageContext msgContext)
Fill in a service description with the correct impl class
and typemapping set.
|
void |
invoke(MessageContext msgContext)
Invoke the message by obtaining various common fields, looking up
the service object (via getServiceObject), and actually processing
the message (via processMessage).
|
protected Object |
makeNewServiceObject(MessageContext msgContext,
String clsName)
Default java service object comes from simply instantiating the
class wrapped in jc
|
abstract void |
processMessage(MessageContext msgContext,
SOAPEnvelope reqEnv,
SOAPEnvelope resEnv,
Object obj)
Process the current message.
|
addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNamescanHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockableprotected static org.apache.commons.logging.Log log
protected static org.apache.commons.logging.Log entLog
public static final String OPTION_CLASSNAME
public static final String OPTION_ALLOWEDMETHODS
public static final String OPTION_SCOPE
public Object getServiceObject(MessageContext msgContext, Handler service, String clsName, IntHolder scopeHolder) throws Exception
Exceptionpublic abstract void processMessage(MessageContext msgContext, SOAPEnvelope reqEnv, SOAPEnvelope resEnv, Object obj) throws Exception
msgContext - self-explanatoryreqEnv - the request enveloperesEnv - the response envelopeobj - the service object itselfExceptionpublic void invoke(MessageContext msgContext) throws AxisFault
msgContext - the MessageContext to process with this
Handler.AxisFault - if the handler encounters an errorprotected Object makeNewServiceObject(MessageContext msgContext, String clsName) throws Exception
Exceptionprotected String getServiceClassName(Handler service)
protected String getServiceClassNameOptionName()
protected Class getServiceClass(String clsName, SOAPService service, MessageContext msgContext) throws AxisFault
AxisFaultpublic void initServiceDesc(SOAPService service, MessageContext msgContext) throws AxisFault
initServiceDesc in class BasicProviderAxisFaultCopyright © The Apache Software Foundation. All Rights Reserved.