|
|||||||||||
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 | |
static String |
OPTION_ALLOWEDMETHODS
|
static String |
OPTION_CLASSNAME
|
static String |
OPTION_CLASSPATH
|
static String |
OPTION_IS_STATIC
|
static String |
OPTION_SCOPE
|
static String |
OPTION_WSDL_INPUTSCHEMA
|
static String |
OPTION_WSDL_PORTTYPE
|
static String |
OPTION_WSDL_SERVICEELEMENT
|
static String |
OPTION_WSDL_SERVICEPORT
|
static 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 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,
javax.xml.rpc.holders.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 |
protected void |
processException(Exception ex)
Externalize exception handling |
abstract void |
processMessage(MessageContext msgContext,
SOAPEnvelopeAxisImpl reqEnv,
SOAPEnvelopeAxisImpl resEnv,
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 |
public static final String OPTION_CLASSNAME
public static final String OPTION_ALLOWEDMETHODS
public static final String OPTION_IS_STATIC
public static final String OPTION_CLASSPATH
public static final String OPTION_WSDL_PORTTYPE
public static final String OPTION_WSDL_SERVICEELEMENT
public static final String OPTION_WSDL_SERVICEPORT
public static final String OPTION_WSDL_TARGETNAMESPACE
public static final String OPTION_WSDL_INPUTSCHEMA
public static final String OPTION_SCOPE
Constructor Detail |
public JavaProvider()
Method Detail |
public Object getServiceObject(MessageContext msgContext, Handler service, String clsName, javax.xml.rpc.holders.IntHolder scopeHolder) throws Exception
Exception
public abstract void processMessage(MessageContext msgContext, SOAPEnvelopeAxisImpl reqEnv, SOAPEnvelopeAxisImpl resEnv, Object obj) throws Exception
msgContext
- self-explanatoryreqEnv
- the request enveloperesEnv
- the response envelopeobj
- the service object itself
Exception
public void invoke(MessageContext msgContext) throws AxisFault
invoke
in interface Handler
invoke
in class BasicHandler
AxisFault
protected void processException(Exception ex) throws AxisFault
ex
- Exception during message processing
AxisFault
- The generated Axis faultpublic void generateWSDL(MessageContext msgContext) throws AxisFault
generateWSDL
in interface Handler
generateWSDL
in class BasicProvider
AxisFault
protected Object makeNewServiceObject(MessageContext msgContext, String clsName) throws Exception
Exception
protected String getServiceClassName(Handler service)
protected String getServiceClassNameOptionName()
protected Class getServiceClass(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 |