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 String
getAfter()
Method getAfter.String
getBefore()
Method getBefore.String
getPhaseName()
Method getPhaseName.boolean
isPhaseFirst()
Method isPhaseFirst.boolean
isPhaseLast()
Method isPhaseLast.void
setAfter(String after)
Set the "after" name for this rule.void
setBefore(String before)
Set the "before" name for this rule.void
setPhaseFirst(boolean phaseFirst)
Method setPhaseFirst.void
setPhaseLast(boolean phaseLast)
Method setPhaseLast.void
setPhaseName(String phaseName)
Method setPhaseName.void
validate()
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 PhaseException
Validate "sane" rules - cannot have both phaseFirst/phaseLast and before/after- Throws:
PhaseException
- if phaseFirst/phaseLast is set along with before/after
-
-