Package com.aspectran.core.context.rule
Class AbstractResponseRule
- java.lang.Object
-
- com.aspectran.core.context.rule.AbstractResponseRule
-
- All Implemented Interfaces:
ActionRuleApplicable
- Direct Known Subclasses:
DispatchRule,ForwardRule,RedirectRule,TransformRule
public abstract class AbstractResponseRule extends java.lang.Object implements ActionRuleApplicable
-
-
Constructor Summary
Constructors Constructor Description AbstractResponseRule()
-
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.ActionListgetActionList()java.lang.BooleangetDefaultResponse()Returns whether the default response.booleanisDefaultResponse()Returns whether the default response.voidsetActionList(ActionList actionList)voidsetDefaultResponse(java.lang.Boolean defaultResponse)Sets whether the default response.
-
-
-
Method Detail
-
getDefaultResponse
public java.lang.Boolean getDefaultResponse()
Returns whether the default response.- Returns:
- whether the default response
-
isDefaultResponse
public boolean isDefaultResponse()
Returns whether the default response.- Returns:
- true, if is default response
-
setDefaultResponse
public void setDefaultResponse(java.lang.Boolean defaultResponse)
Sets whether the default response.- Parameters:
defaultResponse- whether the default response
-
getActionList
public ActionList getActionList()
-
setActionList
public void setActionList(ActionList actionList)
-
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
-
-