站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 webservice API Documentation 英文版文档

InvokerProvider (JBossWS API) - JBoss 4.0.1 sp1 webservice API Documentation 英文版文档


org.jboss.webservice.server
Class InvokerProvider

java.lang.Object
  extended byorg.apache.axis.handlers.BasicHandler
      extended byorg.apache.axis.providers.BasicProvider
          extended byorg.apache.axis.providers.java.JavaProvider
              extended byorg.apache.axis.providers.java.RPCProvider
                  extended byorg.jboss.webservice.server.InvokerProvider
All Implemented Interfaces:
org.apache.axis.Handler, Serializable
Direct Known Subclasses:
InvokerProviderEJB, InvokerProviderJSE

public abstract class InvokerProvider
extends org.apache.axis.providers.java.RPCProvider

An RPC provider base that provides access to some webservice specific meta-data artifacts through JMX.

Since:
15-April-2004
Author:
Thomas.Diesler@jboss.org
See Also:
Serialized Form

Field Summary
protected  ServerHandlerChain handlerChain
           
protected  PortComponentInfo portComponentInfo
           
protected  javax.management.MBeanServer server
           
 
Fields inherited from class org.apache.axis.providers.java.RPCProvider
RPC_INVOCATION
 
Fields inherited from class org.apache.axis.providers.java.JavaProvider
OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_CLASSPATH, OPTION_IS_STATIC, OPTION_SCOPE, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_TARGETNAMESPACE
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
InvokerProvider()
           
 
Method Summary
 org.apache.axis.providers.java.RPCInvocation createRPCInvocation(org.apache.axis.MessageContext msgContext, org.apache.axis.message.SOAPEnvelopeAxisImpl reqEnv, org.apache.axis.message.SOAPEnvelopeAxisImpl resEnv, Object obj)
           
 void generateWSDL(org.apache.axis.MessageContext msgContext)
          Generate the WSDL for this service.
protected abstract  ClassLoader getContextClassLoader()
          Get the context CLassLoader for this service
 Document getDocumentForPath(String resourcePath)
          Get the WSDL resource for a given resource path

Use path value of null to get the root document

 PortComponentInfo getPortComponentInfo()
           
protected  Class getServiceClass(String clsName, org.apache.axis.handlers.soap.SOAPService service, org.apache.axis.MessageContext msgContext)
          Returns the Class info about the service class.
protected  String getServiceClassName(org.apache.axis.Handler handler)
          Return the class name of the service.
 void initServiceDesc(org.apache.axis.handlers.soap.SOAPService service, org.apache.axis.MessageContext msgContext)
          Get deployment meta info

Note, the msgContext may be null if the request is not a SOAP message this is the case for the list operation http://localhost:8080/ws4ee/servlet/AxisServlet

protected  Object invokeMethod(org.apache.axis.MessageContext msgContext, Method method, Object obj, Object[] argValues)
          Invoke the service endpoint.
protected abstract  Object invokeServiceEndpoint(org.apache.axis.MessageContext msgContext, Method method, Object obj, Object[] argValues)
          Overwrite for EJB, and JSE endpoint invocation
 
Methods inherited from class org.apache.axis.providers.java.RPCProvider
checkMethodName, invokeTarget, processMessage
 
Methods inherited from class org.apache.axis.providers.java.JavaProvider
getServiceClassNameOptionName, getServiceObject, invoke, makeNewServiceObject, processException
 
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

server

protected javax.management.MBeanServer server

portComponentInfo

protected PortComponentInfo portComponentInfo

handlerChain

protected ServerHandlerChain handlerChain
Constructor Detail

InvokerProvider

public InvokerProvider()
Method Detail

initServiceDesc

public void initServiceDesc(org.apache.axis.handlers.soap.SOAPService service,
                            org.apache.axis.MessageContext msgContext)
                     throws org.apache.axis.AxisFault
Get deployment meta info

Note, the msgContext may be null if the request is not a SOAP message this is the case for the list operation http://localhost:8080/ws4ee/servlet/AxisServlet

Parameters:
msgContext - the SOAP MessageContext, or null
Throws:
org.apache.axis.AxisFault

getContextClassLoader

protected abstract ClassLoader getContextClassLoader()
Get the context CLassLoader for this service


generateWSDL

public void generateWSDL(org.apache.axis.MessageContext msgContext)
                  throws org.apache.axis.AxisFault
Generate the WSDL for this service.

Put in the "WSDL" property of the message context as a org.w3c.dom.Document

Throws:
org.apache.axis.AxisFault

createRPCInvocation

public org.apache.axis.providers.java.RPCInvocation createRPCInvocation(org.apache.axis.MessageContext msgContext,
                                                                        org.apache.axis.message.SOAPEnvelopeAxisImpl reqEnv,
                                                                        org.apache.axis.message.SOAPEnvelopeAxisImpl resEnv,
                                                                        Object obj)

getPortComponentInfo

public PortComponentInfo getPortComponentInfo()

getDocumentForPath

public Document getDocumentForPath(String resourcePath)
Get the WSDL resource for a given resource path

Use path value of null to get the root document

Parameters:
resourcePath - The wsdl resource to get, can be null for the top level wsdl
Returns:
A wsdl document, or null if it cannot be found

getServiceClass

protected Class getServiceClass(String clsName,
                                org.apache.axis.handlers.soap.SOAPService service,
                                org.apache.axis.MessageContext msgContext)
                         throws org.apache.axis.AxisFault
Returns the Class info about the service class.

Throws:
org.apache.axis.AxisFault

getServiceClassName

protected String getServiceClassName(org.apache.axis.Handler handler)
Return the class name of the service. We return the SEI instead.


invokeMethod

protected final Object invokeMethod(org.apache.axis.MessageContext msgContext,
                                    Method method,
                                    Object obj,
                                    Object[] argValues)
                             throws Exception
Invoke the service endpoint.

Throws:
Exception

invokeServiceEndpoint

protected abstract Object invokeServiceEndpoint(org.apache.axis.MessageContext msgContext,
                                                Method method,
                                                Object obj,
                                                Object[] argValues)
                                         throws Exception
Overwrite for EJB, and JSE endpoint invocation

Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.