org.apache.axis2.jaxws.server.dispatcher
Class JavaDispatcher

java.lang.Object
  extended by org.apache.axis2.jaxws.server.dispatcher.JavaDispatcher
All Implemented Interfaces:
EndpointDispatcher
Direct Known Subclasses:
JavaBeanDispatcher, ProviderDispatcher

public abstract class JavaDispatcher
extends java.lang.Object
implements EndpointDispatcher

JavaDispatcher is an abstract class that can be extended to implement an EndpointDispatcher to a Java object.


Nested Class Summary
protected  class JavaDispatcher.AsyncInvocationWorker
           
 
Field Summary
protected  java.lang.Class serviceImplClass
           
protected  java.lang.Object serviceInstance
           
 
Constructor Summary
protected JavaDispatcher(java.lang.Class impl, java.lang.Object serviceInstance)
           
 
Method Summary
protected abstract  MessageContext createFaultResponse(MessageContext request, java.lang.Throwable fault)
           
protected abstract  MessageContext createResponse(MessageContext request, java.lang.Object[] input, java.lang.Object output)
           
 java.lang.Class getServiceImplementationClass()
           
abstract  MessageContext invoke(MessageContext request)
          Invoke the target endpoint synchronously
abstract  void invokeAsync(MessageContext request, EndpointCallback callback)
           
abstract  void invokeOneWay(MessageContext request)
           
protected  java.lang.Object invokeTargetOperation(java.lang.reflect.Method method, java.lang.Object[] params)
           
protected  void responseReady(EndpointInvocationContext eic)
          This will call the InvocationListener instances that were called during the request processing for this message.
protected static void setFaultResponseAction(java.lang.Throwable exception, MessageContext request, MessageContext response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceImplClass

protected java.lang.Class serviceImplClass

serviceInstance

protected java.lang.Object serviceInstance
Constructor Detail

JavaDispatcher

protected JavaDispatcher(java.lang.Class impl,
                         java.lang.Object serviceInstance)
Method Detail

invoke

public abstract MessageContext invoke(MessageContext request)
                               throws java.lang.Exception
Description copied from interface: EndpointDispatcher
Invoke the target endpoint synchronously

Specified by:
invoke in interface EndpointDispatcher
Returns:
Throws:
java.lang.Exception

invokeOneWay

public abstract void invokeOneWay(MessageContext request)
Specified by:
invokeOneWay in interface EndpointDispatcher

invokeAsync

public abstract void invokeAsync(MessageContext request,
                                 EndpointCallback callback)
Specified by:
invokeAsync in interface EndpointDispatcher

createResponse

protected abstract MessageContext createResponse(MessageContext request,
                                                 java.lang.Object[] input,
                                                 java.lang.Object output)

createFaultResponse

protected abstract MessageContext createFaultResponse(MessageContext request,
                                                      java.lang.Throwable fault)

getServiceImplementationClass

public java.lang.Class getServiceImplementationClass()

invokeTargetOperation

protected java.lang.Object invokeTargetOperation(java.lang.reflect.Method method,
                                                 java.lang.Object[] params)
                                          throws java.lang.Throwable
Throws:
java.lang.Throwable

responseReady

protected void responseReady(EndpointInvocationContext eic)
This will call the InvocationListener instances that were called during the request processing for this message.


setFaultResponseAction

protected static void setFaultResponseAction(java.lang.Throwable exception,
                                             MessageContext request,
                                             MessageContext response)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.