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 void
applyActionRule(Executable action)
Adds an executable action instance.Executable
applyActionRule(AnnotatedMethodActionRule annotatedMethodActionRule)
Adds the annotated method action rule.Executable
applyActionRule(BeanMethodActionRule beanMethodActionRule)
Adds the bean method action rule.Executable
applyActionRule(EchoActionRule echoActionRule)
Adds the echo action rule.Executable
applyActionRule(HeaderActionRule headerActionRule)
Adds the header action rule.Executable
applyActionRule(IncludeActionRule includeActionRule)
Adds the include action rule.void
applyActionRule(java.util.Collection<Executable> actionList)
Adds a list of action instances that can be executed.ActionList
getActionList()
java.lang.Boolean
getDefaultResponse()
Returns whether the default response.boolean
isDefaultResponse()
Returns whether the default response.void
setActionList(ActionList actionList)
void
setDefaultResponse(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:ActionRuleApplicable
Adds the bean method action rule.- Specified by:
applyActionRule
in 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:ActionRuleApplicable
Adds the annotated method action rule.- Specified by:
applyActionRule
in 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: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
public Executable applyActionRule(EchoActionRule echoActionRule)
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
public Executable applyActionRule(HeaderActionRule headerActionRule)
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
public void applyActionRule(Executable action)
Description copied from interface:ActionRuleApplicable
Adds an executable action instance.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
action
- an executable action instance
-
applyActionRule
public void applyActionRule(java.util.Collection<Executable> actionList)
Description copied from interface:ActionRuleApplicable
Adds a list of action instances that can be executed.- Specified by:
applyActionRule
in interfaceActionRuleApplicable
- Parameters:
actionList
- a list of action instances
-
-