Save This Page
Home » axis2-1.5-src » org.apache » axis2 » engine » [javadoc | source]
org.apache.axis2.engine
public class: Phase [javadoc | source]
java.lang.Object
   org.apache.axis2.engine.Phase

All Implemented Interfaces:
    Handler

Direct Known Subclasses:
    DispatchPhase

A Phase is an ordered collection of Handlers.
Field Summary
public static final  String ALL_PHASES     
Constructor:
 public Phase() 
 public Phase(String phaseName) 
    Create a named Phase
    Parameters:
    phaseName - the name for this Phase
Method from org.apache.axis2.engine.Phase Summary:
addHandler,   addHandler,   addHandler,   checkPostConditions,   checkPreconditions,   cleanup,   flowComplete,   getHandlerCount,   getHandlerDesc,   getHandlers,   getName,   getParameter,   getPhaseName,   init,   invoke,   removeHandler,   setName,   setPhaseFirst,   setPhaseLast,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axis2.engine.Phase Detail:
 public  void addHandler(Handler handler) 
    Add a handler to the Phase.
 public  void addHandler(HandlerDescription handlerDesc) throws PhaseException 
    Add a HandlerDescription to the Phase
 public  void addHandler(Handler handler,
    int index) 
    Add a Handler at a particular index within the Phase. If we have a Phase with (H1, H2), calling addHandler(H3, 1) will result in (H1, H3, H2)
 public  void checkPostConditions(MessageContext msgContext) throws AxisFault 
    Confirm that all post-conditions of this Phase are met. After all Handlers in a Phase are invoke()d, this method will be called. Subclasses should override it in order to confirm that the purpose of the given Phase has been acheived.
 public  void checkPreconditions(MessageContext msgContext) throws AxisFault 
    Check the preconditions for a Phase. This method will be called when the Phase is invoked, BEFORE any Handlers are invoked. Subclasses should override it in order to confirm that necessary preconditions are met before the Phase does its work. They should throw an appropriate AxisFault if not.
 public  void cleanup() 
 public  void flowComplete(MessageContext msgContext) 
 public int getHandlerCount() 
 public HandlerDescription getHandlerDesc() 
 public List getHandlers() 
    Gets all the handlers in the phase.
 public String getName() 
 public Parameter getParameter(String name) 
 public String getPhaseName() 
 public  void init(HandlerDescription handlerdesc) 
 public final InvocationResponse invoke(MessageContext msgctx) throws AxisFault 
    Invoke all the handlers in this Phase
 public  void removeHandler(HandlerDescription handlerDesc) 
    Remove a given Handler from a phase using a HandlerDescription
 public  void setName(String phaseName) 
 public  void setPhaseFirst(Handler handler) throws PhaseException 
    Add a Handler to the Phase in the very first position, and ensure no other Handler will come before it.
 public  void setPhaseLast(Handler handler) throws PhaseException 
    Add a Handler to the Phase in the very last position, and ensure no other Handler will come after it.
 public String toString()