org.apache.axis2.jaxws.server.dispatcher
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.
Constructor Summary |
JavaBeanDispatcher(java.lang.Class implClass,
java.lang.Object serviceInstance)
|
Method Summary |
MessageContext |
createFaultResponse(MessageContext request,
Protocol p,
java.lang.Throwable t)
|
MessageContext |
createFaultResponse(MessageContext request,
java.lang.Throwable t)
|
MessageContext |
createResponse(MessageContext request,
java.lang.Object[] input,
java.lang.Object output)
|
MessageContext |
createResponse(MessageContext request,
Protocol p,
java.lang.Object[] params,
java.lang.Object output)
|
protected java.lang.reflect.Method |
getJavaMethod(MessageContext mc,
java.lang.Class serviceImplClass)
|
MessageContext |
invoke(MessageContext mc)
Invoke the target endpoint synchronously |
void |
invokeAsync(MessageContext request,
EndpointCallback callback)
|
void |
invokeOneWay(MessageContext request)
|
protected java.lang.Object |
invokeService(MessageContext ctx,
java.lang.reflect.Method method,
java.lang.Object obj,
java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaBeanDispatcher
public JavaBeanDispatcher(java.lang.Class implClass,
java.lang.Object serviceInstance)
invoke
public MessageContext invoke(MessageContext mc)
throws java.lang.Exception
- Description copied from interface:
EndpointDispatcher
- Invoke the target endpoint synchronously
- Specified by:
invoke
in interface EndpointDispatcher
- Specified by:
invoke
in class JavaDispatcher
- Returns:
-
- Throws:
java.lang.Exception
invokeOneWay
public void invokeOneWay(MessageContext request)
- Specified by:
invokeOneWay
in interface EndpointDispatcher
- Specified by:
invokeOneWay
in class JavaDispatcher
invokeAsync
public void invokeAsync(MessageContext request,
EndpointCallback callback)
- Specified by:
invokeAsync
in interface EndpointDispatcher
- Specified by:
invokeAsync
in class JavaDispatcher
invokeService
protected java.lang.Object invokeService(MessageContext ctx,
java.lang.reflect.Method method,
java.lang.Object obj,
java.lang.Object[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
getJavaMethod
protected java.lang.reflect.Method getJavaMethod(MessageContext mc,
java.lang.Class serviceImplClass)
createResponse
public MessageContext createResponse(MessageContext request,
java.lang.Object[] input,
java.lang.Object output)
- Specified by:
createResponse
in class JavaDispatcher
createResponse
public MessageContext createResponse(MessageContext request,
Protocol p,
java.lang.Object[] params,
java.lang.Object output)
createFaultResponse
public MessageContext createFaultResponse(MessageContext request,
java.lang.Throwable t)
- Specified by:
createFaultResponse
in class JavaDispatcher
createFaultResponse
public MessageContext createFaultResponse(MessageContext request,
Protocol p,
java.lang.Throwable t)
Copyright © 2007 Apache Web Services Project. All Rights Reserved.