|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.handlers.BasicHandler | +--org.apache.axis.providers.BasicProvider | +--org.apache.axis.providers.java.JavaProvider
Base class for Java dispatching. Fetches various fields out of envelope, looks up service object (possibly using session state), and delegates envelope body processing to subclass via abstract processMessage method.
Field Summary | |
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_CLASSPATH
|
static java.lang.String |
OPTION_IS_STATIC
|
static java.lang.String |
OPTION_SCOPE
|
static java.lang.String |
OPTION_WSDL_INPUTSCHEMA
|
static java.lang.String |
OPTION_WSDL_PORTTYPE
|
static java.lang.String |
OPTION_WSDL_SERVICEELEMENT
|
static java.lang.String |
OPTION_WSDL_SERVICEPORT
|
static java.lang.String |
OPTION_WSDL_TARGETNAMESPACE
|
Fields inherited from class org.apache.axis.handlers.BasicHandler |
makeLockable, name, options |
Constructor Summary | |
JavaProvider()
|
Method Summary | |
void |
generateWSDL(MessageContext msgContext)
Generate the WSDL for this service. |
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. |
Methods inherited from class org.apache.axis.providers.BasicProvider |
addOperation, getOperationName, getOperationNames, getOperationQNames |
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 |
Field Detail |
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_IS_STATIC
public static final java.lang.String OPTION_CLASSPATH
public static final java.lang.String OPTION_WSDL_PORTTYPE
public static final java.lang.String OPTION_WSDL_SERVICEELEMENT
public static final java.lang.String OPTION_WSDL_SERVICEPORT
public static final java.lang.String OPTION_WSDL_TARGETNAMESPACE
public static final java.lang.String OPTION_WSDL_INPUTSCHEMA
public static final java.lang.String OPTION_SCOPE
Constructor Detail |
public JavaProvider()
Method Detail |
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 itself
java.lang.Exception
public void invoke(MessageContext msgContext) throws AxisFault
invoke
in interface Handler
invoke
in class BasicHandler
AxisFault
public void generateWSDL(MessageContext msgContext) throws AxisFault
generateWSDL
in interface Handler
generateWSDL
in class BasicProvider
AxisFault
protected 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |