org.apache.axis2.engine
Class AxisEngine

java.lang.Object
  extended byorg.apache.axis2.engine.AxisEngine

public class AxisEngine
extends java.lang.Object

There is one engine for the Server and the Client. the send() and receive() Methods are the basic operations the Sync, Async messageing are build on top.


Constructor Summary
AxisEngine(ConfigurationContext engineContext)
          Constructor AxisEngine
 
Method Summary
 MessageContext createFaultMessageContext(MessageContext processingContext, java.lang.Throwable e)
          This method is called to handle any error that occurs at inflow or outflow.
 void receive(MessageContext msgContext)
          This methods represents the inflow of the Axis, this could be either at the server side or the client side.
 void receiveFault(MessageContext msgContext)
          This is invoked when a SOAP Fault is received from a Other SOAP Node Receives a SOAP fault from another SOAP node.
 void resumeInvocationPhases(java.util.ArrayList phases, MessageContext msgctx)
           
 void send(MessageContext msgContext)
          This methods represents the outflow of the Axis, this could be either at the server side or the client side.
 void sendFault(MessageContext msgContext)
          Sends the SOAP Fault to another SOAP node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisEngine

public AxisEngine(ConfigurationContext engineContext)
Constructor AxisEngine

Method Detail

send

public void send(MessageContext msgContext)
          throws AxisFault
This methods represents the outflow of the Axis, this could be either at the server side or the client side. Here the ExecutionChain is created using the Phases. The Handlers at the each Phases is ordered in deployment time by the deployment module

Parameters:
msgContext -
Throws:
AxisFault
See Also:
MessageContext, Phase, Handler

receive

public void receive(MessageContext msgContext)
             throws AxisFault
This methods represents the inflow of the Axis, this could be either at the server side or the client side. Here the ExecutionChain is created using the Phases. The Handlers at the each Phases is ordered in deployment time by the deployment module

Throws:
AxisFault
See Also:
MessageContext, Phase, Handler

sendFault

public void sendFault(MessageContext msgContext)
               throws AxisFault
Sends the SOAP Fault to another SOAP node.

Parameters:
msgContext -
Throws:
AxisFault

receiveFault

public void receiveFault(MessageContext msgContext)
                  throws AxisFault
This is invoked when a SOAP Fault is received from a Other SOAP Node Receives a SOAP fault from another SOAP node.

Parameters:
msgContext -
Throws:
AxisFault

createFaultMessageContext

public MessageContext createFaultMessageContext(MessageContext processingContext,
                                                java.lang.Throwable e)
                                         throws AxisFault
This method is called to handle any error that occurs at inflow or outflow. But if the method is called twice, it implies that sending the error handling has failed, in which case the method logs the error and exists.

Parameters:
processingContext -
e -
Throws:
AxisFault

resumeInvocationPhases

public void resumeInvocationPhases(java.util.ArrayList phases,
                                   MessageContext msgctx)
                            throws AxisFault
Throws:
AxisFault