Package com.aspectran.core.context.rule
Class ExceptionThrownRule
java.lang.Object
com.aspectran.core.context.rule.ExceptionThrownRule
- All Implemented Interfaces:
ActionRuleApplicable
,ResponseRuleApplicable
public class ExceptionThrownRule
extends Object
implements ActionRuleApplicable, ResponseRuleApplicable
The Class ExceptionThrownRule.
Created: 2008. 04. 01 PM 11:19:28
-
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.Returns the advice action.Returns the action type of the executable action.String[]
getResponse
(String contentType) Gets the response map.static ExceptionThrownRule
newInstance
(Class<? extends Throwable>[] types, AnnotatedAction action) void
setAction
(AnnotatedAction action) void
setExceptionTypes
(String... exceptionTypes)
-
Constructor Details
-
ExceptionThrownRule
public ExceptionThrownRule() -
ExceptionThrownRule
-
-
Method Details
-
getAspectAdviceRule
-
getExceptionTypes
-
setExceptionTypes
-
getAction
Returns the advice action.- Returns:
- the advice action
-
setAction
-
getActionType
Returns the action type of the executable action.- Returns:
- the action type
-
getResponse
-
getResponseMap
Gets the response map.- Returns:
- the response map
-
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
-
newInstance
@NonNull public static ExceptionThrownRule newInstance(Class<? extends Throwable>[] types, AnnotatedAction action)
-