ActionRuleApplicable
, ResponseRuleApplicable
public class ExceptionThrownRule extends java.lang.Object implements ResponseRuleApplicable, ActionRuleApplicable
Created: 2008. 04. 01 PM 11:19:28
Constructor | Description |
---|---|
ExceptionThrownRule() |
|
ExceptionThrownRule(AspectAdviceRule aspectAdviceRule) |
Modifier and Type | Method | Description |
---|---|---|
void |
applyActionRule(BeanActionRule beanActionRule) |
Adds the bean action.
|
void |
applyActionRule(EchoActionRule echoActionRule) |
Adds the echo action.
|
void |
applyActionRule(HeadingActionRule headingActionRule) |
Adds the heading action.
|
void |
applyActionRule(IncludeActionRule includeActionRule) |
Adds the process-call action.
|
void |
applyActionRule(MethodActionRule methodActionRule) |
Adds the method action.
|
Response |
applyResponseRule(DispatchResponseRule dispatchResponseRule) |
Apply the dispatch response rule to the response rule.
|
Response |
applyResponseRule(ForwardResponseRule forwardResponseRule) |
Apply the forward response rule to the response rule.
|
Response |
applyResponseRule(RedirectResponseRule redirectResponseRule) |
Apply the redirect response rule to the response rule.
|
Response |
applyResponseRule(TransformRule transformRule) |
Apply the transform response rule to the response rule.
|
ActionType |
getActionType() |
Returns the action type of the executable action.
|
Response |
getDefaultResponse() |
|
java.lang.String[] |
getExceptionTypes() |
|
Executable |
getExecutableAction() |
Returns the executable action.
|
Response |
getResponse(java.lang.String contentType) |
|
ResponseMap |
getResponseMap() |
Gets the response map.
|
static ExceptionThrownRule |
newInstance(java.lang.Class<? extends java.lang.Throwable>[] types,
MethodAction action) |
|
void |
setDefaultResponse(Response response) |
|
void |
setExceptionTypes(java.lang.String... exceptionTypes) |
|
void |
setExecutableAction(MethodAction action) |
|
void |
setResponseMap(ResponseMap responseMap) |
Sets the response map.
|
public ExceptionThrownRule()
public ExceptionThrownRule(AspectAdviceRule aspectAdviceRule)
public java.lang.String[] getExceptionTypes()
public void setExceptionTypes(java.lang.String... exceptionTypes)
public Response getResponse(java.lang.String contentType)
public ResponseMap getResponseMap()
public void setResponseMap(ResponseMap responseMap)
responseMap
- the new response mappublic Response getDefaultResponse()
public void setDefaultResponse(Response response)
public Response applyResponseRule(TransformRule transformRule)
ResponseRuleApplicable
applyResponseRule
in interface ResponseRuleApplicable
transformRule
- the transform rulepublic Response applyResponseRule(DispatchResponseRule dispatchResponseRule)
ResponseRuleApplicable
applyResponseRule
in interface ResponseRuleApplicable
dispatchResponseRule
- the dispatch response rulepublic Response applyResponseRule(RedirectResponseRule redirectResponseRule)
ResponseRuleApplicable
applyResponseRule
in interface ResponseRuleApplicable
redirectResponseRule
- the redirect response rulepublic Response applyResponseRule(ForwardResponseRule forwardResponseRule)
ResponseRuleApplicable
applyResponseRule
in interface ResponseRuleApplicable
forwardResponseRule
- the forward response rulepublic void applyActionRule(BeanActionRule beanActionRule)
ActionRuleApplicable
applyActionRule
in interface ActionRuleApplicable
beanActionRule
- the bean action rulepublic void applyActionRule(MethodActionRule methodActionRule)
ActionRuleApplicable
applyActionRule
in interface ActionRuleApplicable
methodActionRule
- the bean action rulepublic void applyActionRule(IncludeActionRule includeActionRule)
ActionRuleApplicable
applyActionRule
in interface ActionRuleApplicable
includeActionRule
- the process call action rulepublic void applyActionRule(EchoActionRule echoActionRule)
ActionRuleApplicable
applyActionRule
in interface ActionRuleApplicable
echoActionRule
- the echo action rulepublic void applyActionRule(HeadingActionRule headingActionRule)
ActionRuleApplicable
applyActionRule
in interface ActionRuleApplicable
headingActionRule
- the heading action rulepublic Executable getExecutableAction()
public void setExecutableAction(MethodAction action)
public ActionType getActionType()
public static ExceptionThrownRule newInstance(java.lang.Class<? extends java.lang.Throwable>[] types, MethodAction action)
Copyright © 2008–2018 The Aspectran Project. All rights reserved.