Class JavaBeanDispatcher
- java.lang.Object
-
- org.apache.axis2.jaxws.server.dispatcher.JavaDispatcher
-
- org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher
-
- All Implemented Interfaces:
EndpointDispatcher
public class JavaBeanDispatcher extends JavaDispatcher
The JavaBeanDispatcher is used to manage creating an instance of a JAX-WS service implementation bean and dispatching the inbound request to that instance.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.axis2.jaxws.server.dispatcher.JavaDispatcher
JavaDispatcher.AsyncInvocationWorker
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.jaxws.server.dispatcher.JavaDispatcher
serviceImplClass, serviceInstance
-
-
Constructor Summary
Constructors Constructor Description JavaBeanDispatcher(Class implClass, Object serviceInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageContext
createFaultResponse(MessageContext request, Throwable t)
MessageContext
createFaultResponse(MessageContext request, Protocol p, Throwable t)
MessageContext
createResponse(MessageContext request, Object[] input, Object output)
MessageContext
createResponse(MessageContext request, Protocol p, Object[] params, Object output)
protected Method
getJavaMethod(MessageContext mc, Class serviceImplClass)
protected void
initialize(MessageContext mc)
MessageContext
invoke(MessageContext mc)
Invoke the target endpoint synchronouslyvoid
invokeAsync(MessageContext request, EndpointCallback callback)
void
invokeOneWay(MessageContext request)
-
Methods inherited from class org.apache.axis2.jaxws.server.dispatcher.JavaDispatcher
getServiceImplementationClass, invokeTargetOperation, responseReady, setCheckedExceptionProperty, setExceptionProperties, setFaultResponseAction, setWebMethodExceptionProperty
-
-
-
-
Method Detail
-
invoke
public MessageContext invoke(MessageContext mc) throws Exception
Description copied from interface:EndpointDispatcher
Invoke the target endpoint synchronously- Specified by:
invoke
in interfaceEndpointDispatcher
- Specified by:
invoke
in classJavaDispatcher
- Returns:
- Throws:
Exception
-
invokeOneWay
public void invokeOneWay(MessageContext request)
- Specified by:
invokeOneWay
in interfaceEndpointDispatcher
- Specified by:
invokeOneWay
in classJavaDispatcher
-
invokeAsync
public void invokeAsync(MessageContext request, EndpointCallback callback)
- Specified by:
invokeAsync
in interfaceEndpointDispatcher
- Specified by:
invokeAsync
in classJavaDispatcher
-
initialize
protected void initialize(MessageContext mc)
-
getJavaMethod
protected Method getJavaMethod(MessageContext mc, Class serviceImplClass)
-
createResponse
public MessageContext createResponse(MessageContext request, Object[] input, Object output)
- Specified by:
createResponse
in classJavaDispatcher
-
createResponse
public MessageContext createResponse(MessageContext request, Protocol p, Object[] params, Object output)
-
createFaultResponse
public MessageContext createFaultResponse(MessageContext request, Throwable t)
- Specified by:
createFaultResponse
in classJavaDispatcher
-
createFaultResponse
public MessageContext createFaultResponse(MessageContext request, Protocol p, Throwable t)
-
-