Package org.apache.axis2.description
Class PhaseRule
java.lang.Object
org.apache.axis2.description.PhaseRule
- All Implemented Interfaces:
Serializable
Class PhaseRule
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAfter()Method getAfter.Method getBefore.Method getPhaseName.booleanMethod isPhaseFirst.booleanMethod isPhaseLast.voidSet the "after" name for this rule.voidSet the "before" name for this rule.voidsetPhaseFirst(boolean phaseFirst) Method setPhaseFirst.voidsetPhaseLast(boolean phaseLast) Method setPhaseLast.voidsetPhaseName(String phaseName) Method setPhaseName.voidvalidate()Validate "sane" rules - cannot have both phaseFirst/phaseLast and before/after
-
Constructor Details
-
PhaseRule
public PhaseRule()Constructor PhaseRule. -
PhaseRule
-
-
Method Details
-
getAfter
Method getAfter.- Returns:
- Returns String.
-
getBefore
Method getBefore.- Returns:
- Returns String.
-
getPhaseName
Method getPhaseName.- Returns:
- Returns String.
-
isPhaseFirst
public boolean isPhaseFirst()Method isPhaseFirst.- Returns:
- Returns boolean.
-
isPhaseLast
public boolean isPhaseLast()Method isPhaseLast.- Returns:
- Returns boolean.
-
setAfter
Set the "after" name for this rule.- Parameters:
after- the name of the "after" handler
-
setBefore
Set the "before" name for this rule.- Parameters:
before- the name of the "before" handler
-
setPhaseFirst
public void setPhaseFirst(boolean phaseFirst) Method setPhaseFirst.- Parameters:
phaseFirst- true if this rule defines the first Handler in a Phase
-
setPhaseLast
public void setPhaseLast(boolean phaseLast) Method setPhaseLast.- Parameters:
phaseLast- true if this rule defines the last Handler in a Phase
-
setPhaseName
Method setPhaseName.- Parameters:
phaseName- the name of the Phase
-
validate
Validate "sane" rules - cannot have both phaseFirst/phaseLast and before/after- Throws:
PhaseException- if phaseFirst/phaseLast is set along with before/after
-