Package com.aspectran.core.context.rule
Class ChooseWhenRule
java.lang.Object
com.aspectran.core.context.rule.ChooseWhenRule
- All Implemented Interfaces:
ActionRuleApplicable
,ResponseRuleApplicable
Created: 2019-01-06
- Since:
- 6.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyActionRule
(Executable action) Adds an executable action instance.applyActionRule
(AnnotatedActionRule annotatedActionRule) Adds the annotated method action rule.applyActionRule
(ChooseRule chooseRule) Adds a list of action instances that can be executed.applyActionRule
(EchoActionRule echoActionRule) Adds the echo action rule.applyActionRule
(HeaderActionRule headerActionRule) Adds the header action rule.applyActionRule
(IncludeActionRule includeActionRule) Adds the include action rule.applyActionRule
(InvokeActionRule invokeActionRule) Adds the invoke action rule.applyResponseRule
(DispatchRule dispatchRule) Apply the dispatch rule to the response rule.applyResponseRule
(ForwardRule forwardRule) Apply the forward rule to the response rule.applyResponseRule
(RedirectRule redirectRule) Apply the redirect rule to the response rule.applyResponseRule
(TransformRule transformRule) Apply the transform rule to the response rule.void
setActionList
(ActionList actionList) void
setExpression
(String expression) void
setResponse
(Response response)
-
Constructor Details
-
ChooseWhenRule
public ChooseWhenRule()
-
-
Method Details
-
getBooleanExpression
-
getExpression
-
setExpression
- Throws:
IllegalRuleException
-
getActionList
-
setActionList
-
getResponse
-
setResponse
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the header action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
headerActionRule
- the header action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the echo action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
echoActionRule
- the echo action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the invoke action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
invokeActionRule
- the invoke action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the annotated method action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
annotatedActionRule
- the annotated method action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds the include action rule.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
includeActionRule
- the include action rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds a list of action instances that can be executed.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
chooseRule
- the choose rule- Returns:
- an instance of the executable action
-
applyActionRule
Description copied from interface:ActionRuleApplicable
Adds an executable action instance.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
action
- an executable action instance
-
applyResponseRule
Description copied from interface:ResponseRuleApplicable
Apply the transform rule to the response rule.- Specified by:
applyResponseRule
in interfaceResponseRuleApplicable
- Parameters:
transformRule
- the transform rule- Returns:
- the response
-
applyResponseRule
Description copied from interface:ResponseRuleApplicable
Apply the dispatch rule to the response rule.- Specified by:
applyResponseRule
in interfaceResponseRuleApplicable
- Parameters:
dispatchRule
- the dispatch rule- Returns:
- the response
-
applyResponseRule
Description copied from interface:ResponseRuleApplicable
Apply the forward rule to the response rule.- Specified by:
applyResponseRule
in interfaceResponseRuleApplicable
- Parameters:
forwardRule
- the forward rule- Returns:
- the response
-
applyResponseRule
Description copied from interface:ResponseRuleApplicable
Apply the redirect rule to the response rule.- Specified by:
applyResponseRule
in interfaceResponseRuleApplicable
- Parameters:
redirectRule
- the redirect rule- Returns:
- the response
-