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 java.lang.String |
OPTION_ALLOWEDMETHODS |
static java.lang.String |
OPTION_CLASSNAME |
static java.lang.String |
OPTION_SCOPE |
OPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACE
makeLockable, name, options
Constructor and Description |
---|
JavaProvider() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class |
getServiceClass(java.lang.String clsName,
SOAPService service,
MessageContext msgContext)
Returns the Class info about the service class.
|
protected java.lang.String |
getServiceClassName(Handler service)
Return the class name of the service
|
protected java.lang.String |
getServiceClassNameOptionName()
Return the option in the configuration that contains the service class
name
|
java.lang.Object |
getServiceObject(MessageContext msgContext,
Handler service,
java.lang.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 java.lang.Object |
makeNewServiceObject(MessageContext msgContext,
java.lang.String clsName)
Default java service object comes from simply instantiating the
class wrapped in jc
|
abstract void |
processMessage(MessageContext msgContext,
SOAPEnvelope reqEnv,
SOAPEnvelope resEnv,
java.lang.Object obj)
Process the current message.
|
addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNames
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
protected static org.apache.commons.logging.Log log
protected static org.apache.commons.logging.Log entLog
public static final java.lang.String OPTION_CLASSNAME
public static final java.lang.String OPTION_ALLOWEDMETHODS
public static final java.lang.String OPTION_SCOPE
public java.lang.Object getServiceObject(MessageContext msgContext, Handler service, java.lang.String clsName, IntHolder scopeHolder) throws java.lang.Exception
java.lang.Exception
public abstract void processMessage(MessageContext msgContext, SOAPEnvelope reqEnv, SOAPEnvelope resEnv, java.lang.Object obj) throws java.lang.Exception
msgContext
- self-explanatoryreqEnv
- the request enveloperesEnv
- the response envelopeobj
- the service object itselfjava.lang.Exception
public void invoke(MessageContext msgContext) throws AxisFault
msgContext
- the MessageContext
to process with this
Handler
.AxisFault
- if the handler encounters an errorprotected java.lang.Object makeNewServiceObject(MessageContext msgContext, java.lang.String clsName) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getServiceClassName(Handler service)
protected java.lang.String getServiceClassNameOptionName()
protected java.lang.Class getServiceClass(java.lang.String clsName, SOAPService service, MessageContext msgContext) throws AxisFault
AxisFault
public void initServiceDesc(SOAPService service, MessageContext msgContext) throws AxisFault
initServiceDesc
in class BasicProvider
AxisFault
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.