Package com.aspectran.core.context.rule
Class ChooseWhenRule
- java.lang.Object
-
- com.aspectran.core.context.rule.ChooseWhenRule
-
- All Implemented Interfaces:
ActionRuleApplicable,ResponseRuleApplicable
public class ChooseWhenRule extends java.lang.Object implements ActionRuleApplicable, ResponseRuleApplicable
Created: 2019-01-06
- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description ChooseWhenRule(int caseNo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyActionRule(Executable action)Adds an executable action instance.ExecutableapplyActionRule(AnnotatedMethodActionRule annotatedMethodActionRule)Adds the annotated method action rule.ExecutableapplyActionRule(BeanMethodActionRule beanMethodActionRule)Adds the bean method action rule.ExecutableapplyActionRule(EchoActionRule echoActionRule)Adds the echo action rule.ExecutableapplyActionRule(HeaderActionRule headerActionRule)Adds the header action rule.ExecutableapplyActionRule(IncludeActionRule includeActionRule)Adds the include action rule.voidapplyActionRule(java.util.Collection<Executable> actionList)Adds a list of action instances that can be executed.ResponseapplyResponseRule(DispatchRule dispatchRule)Apply the dispatch rule to the response rule.ResponseapplyResponseRule(ForwardRule forwardRule)Apply the forward rule to the response rule.ResponseapplyResponseRule(RedirectRule redirectRule)Apply the redirect rule to the response rule.ResponseapplyResponseRule(TransformRule transformRule)Apply the transform rule to the response rule.ActionListgetActionList()intgetCaseNo()java.lang.StringgetExpression()java.lang.ObjectgetRepresented()ResponsegetResponse()voidjoin(ActionRuleApplicable applicable)voidsetActionList(ActionList actionList)voidsetExpression(java.lang.String expression)voidsetResponse(Response response)
-
-
-
Method Detail
-
getCaseNo
public int getCaseNo()
-
getExpression
public java.lang.String getExpression()
-
setExpression
public void setExpression(java.lang.String expression) throws IllegalRuleException- Throws:
IllegalRuleException
-
getRepresented
public java.lang.Object getRepresented()
-
getActionList
public ActionList getActionList()
-
setActionList
public void setActionList(ActionList actionList)
-
join
public void join(ActionRuleApplicable applicable)
-
getResponse
public Response getResponse()
-
setResponse
public void setResponse(Response response)
-
applyActionRule
public Executable applyActionRule(BeanMethodActionRule beanMethodActionRule)
Description copied from interface:ActionRuleApplicableAdds the bean method action rule.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
beanMethodActionRule- the bean method action rule- Returns:
- an instance of the executable action
-
applyActionRule
public Executable applyActionRule(AnnotatedMethodActionRule annotatedMethodActionRule)
Description copied from interface:ActionRuleApplicableAdds the annotated method action rule.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
annotatedMethodActionRule- the annotated method action rule- Returns:
- an instance of the executable action
-
applyActionRule
public Executable applyActionRule(IncludeActionRule includeActionRule)
Description copied from interface:ActionRuleApplicableAdds the include action rule.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
includeActionRule- the include action rule- Returns:
- an instance of the executable action
-
applyActionRule
public Executable applyActionRule(EchoActionRule echoActionRule)
Description copied from interface:ActionRuleApplicableAdds the echo action rule.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
echoActionRule- the echo action rule- Returns:
- an instance of the executable action
-
applyActionRule
public Executable applyActionRule(HeaderActionRule headerActionRule)
Description copied from interface:ActionRuleApplicableAdds the header action rule.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
headerActionRule- the header action rule- Returns:
- an instance of the executable action
-
applyActionRule
public void applyActionRule(Executable action)
Description copied from interface:ActionRuleApplicableAdds an executable action instance.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
action- an executable action instance
-
applyActionRule
public void applyActionRule(java.util.Collection<Executable> actionList)
Description copied from interface:ActionRuleApplicableAdds a list of action instances that can be executed.- Specified by:
applyActionRulein interfaceActionRuleApplicable- Parameters:
actionList- a list of action instances
-
applyResponseRule
public Response applyResponseRule(TransformRule transformRule)
Description copied from interface:ResponseRuleApplicableApply the transform rule to the response rule.- Specified by:
applyResponseRulein interfaceResponseRuleApplicable- Parameters:
transformRule- the transform rule- Returns:
- the response
-
applyResponseRule
public Response applyResponseRule(DispatchRule dispatchRule)
Description copied from interface:ResponseRuleApplicableApply the dispatch rule to the response rule.- Specified by:
applyResponseRulein interfaceResponseRuleApplicable- Parameters:
dispatchRule- the dispatch rule- Returns:
- the response
-
applyResponseRule
public Response applyResponseRule(ForwardRule forwardRule)
Description copied from interface:ResponseRuleApplicableApply the forward rule to the response rule.- Specified by:
applyResponseRulein interfaceResponseRuleApplicable- Parameters:
forwardRule- the forward rule- Returns:
- the response
-
applyResponseRule
public Response applyResponseRule(RedirectRule redirectRule)
Description copied from interface:ResponseRuleApplicableApply the redirect rule to the response rule.- Specified by:
applyResponseRulein interfaceResponseRuleApplicable- Parameters:
redirectRule- the redirect rule- Returns:
- the response
-
-