Package org.apache.axis2.description
Class PhaseRule
- java.lang.Object
-
- org.apache.axis2.description.PhaseRule
-
- All Implemented Interfaces:
Serializable
public class PhaseRule extends Object implements Serializable
Class PhaseRule- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAfter()Method getAfter.StringgetBefore()Method getBefore.StringgetPhaseName()Method getPhaseName.booleanisPhaseFirst()Method isPhaseFirst.booleanisPhaseLast()Method isPhaseLast.voidsetAfter(String after)Set the "after" name for this rule.voidsetBefore(String before)Set 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 Detail
-
PhaseRule
public PhaseRule()
Constructor PhaseRule.
-
PhaseRule
public PhaseRule(String phaseName)
-
-
Method Detail
-
getAfter
public String getAfter()
Method getAfter.- Returns:
- Returns String.
-
getBefore
public String getBefore()
Method getBefore.- Returns:
- Returns String.
-
getPhaseName
public 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
public void setAfter(String after)
Set the "after" name for this rule.- Parameters:
after- the name of the "after" handler
-
setBefore
public void setBefore(String before)
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
public void setPhaseName(String phaseName)
Method setPhaseName.- Parameters:
phaseName- the name of the Phase
-
validate
public void validate() throws PhaseExceptionValidate "sane" rules - cannot have both phaseFirst/phaseLast and before/after- Throws:
PhaseException- if phaseFirst/phaseLast is set along with before/after
-
-