|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.engine.Phase
A Phase is an ordered collection of Handlers.
Nested Class Summary |
Nested classes inherited from class org.apache.axis2.engine.Handler |
Handler.InvocationResponse |
Field Summary | |
static java.lang.String |
ALL_PHASES
|
Constructor Summary | |
Phase()
|
|
Phase(java.lang.String phaseName)
Constructor Phase. |
Method Summary | |
void |
addHandler(Handler handler)
Adds handler to the collection. |
void |
addHandler(HandlerDescription handler)
Method addHandler. |
void |
addHandler(Handler handler,
int index)
Method addHandler. |
void |
checkPostConditions(MessageContext msgContext)
|
void |
checkPreconditions(MessageContext msgContext)
|
void |
cleanup()
Since this might change the whole behavior of Axis2 handlers, and since this is still under discussion (http://marc.theaimsgroup.com/?l=axis-dev&m=114504084929285&w=2) implementation of this method is deferred. |
void |
flowComplete(MessageContext msgContext)
This method will be called on each registered handler that had its invoke(...) method called during the processing of the message, once the message processing has completed. |
int |
getHandlerCount()
|
HandlerDescription |
getHandlerDesc()
Gets the HandlerDescription of a handler. |
java.util.ArrayList |
getHandlers()
Gets all the handlers in the phase. |
java.lang.String |
getName()
Method getName. |
Parameter |
getParameter(java.lang.String name)
Method getParameter. |
java.lang.String |
getPhaseName()
|
void |
init(HandlerDescription handlerdesc)
Method init. |
Handler.InvocationResponse |
invoke(MessageContext msgctx)
invokes all the handlers in this Phase |
void |
removeHandler(HandlerDescription handler)
To remove a given hnadler from a phase |
void |
setName(java.lang.String phaseName)
|
void |
setPhaseFirst(Handler phaseFirst)
Method setPhaseFirst. |
void |
setPhaseLast(Handler phaseLast)
Method setPhaseLast. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ALL_PHASES
Constructor Detail |
public Phase()
public Phase(java.lang.String phaseName)
phaseName
- Method Detail |
public void addHandler(Handler handler)
handler
- public void addHandler(HandlerDescription handler) throws PhaseException
handler
-
PhaseException
public void addHandler(Handler handler, int index)
handler
- index
- public void checkPostConditions(MessageContext msgContext) throws AxisFault
AxisFault
public void checkPreconditions(MessageContext msgContext) throws AxisFault
AxisFault
public void cleanup()
Handler
cleanup
in interface Handler
public void init(HandlerDescription handlerdesc)
Handler
init
in interface Handler
handlerdesc
- public final Handler.InvocationResponse invoke(MessageContext msgctx) throws AxisFault
invoke
in interface Handler
msgctx
-
AxisFault
public void flowComplete(MessageContext msgContext)
Handler
flowComplete
in interface Handler
msgContext
- the MessageContext
to process with this
Handler
.public java.lang.String toString()
public int getHandlerCount()
public HandlerDescription getHandlerDesc()
Handler
getHandlerDesc
in interface Handler
public java.util.ArrayList getHandlers()
public java.lang.String getName()
Handler
getName
in interface Handler
public Parameter getParameter(java.lang.String name)
Handler
getParameter
in interface Handler
name
-
public java.lang.String getPhaseName()
public void setName(java.lang.String phaseName)
public void setPhaseFirst(Handler phaseFirst) throws PhaseException
phaseFirst
-
PhaseException
public void setPhaseLast(Handler phaseLast) throws PhaseException
phaseLast
-
PhaseException
public void removeHandler(HandlerDescription handler)
handler
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |