Activity, BeanRegistryInstantActivity, SessionScopeActivitypublic class DefaultActivity extends BasicActivity
| Constructor | Description |
|---|---|
DefaultActivity(ActivityContext context) |
Instantiates a new DefaultActivity.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
finish() |
Finish the current activity.
|
ProcessResult |
getProcessResult() |
Returns the process result.
|
java.lang.Object |
getProcessResult(java.lang.String actionId) |
Returns an action result for the specified action id from the process result,
or
null if the action does not exist. |
MethodType |
getRequestMethod() |
Returns the request method.
|
Translet |
getTranslet() |
Returns an instance of the current translet.
|
java.lang.String |
getTransletName() |
Returns the name of the current translet.
|
boolean |
isResponseReserved() |
Returns whether the response is reserved.
|
<T extends Activity> |
newActivity() |
Create a new inner activity.
|
void |
perform() |
Performs the prepared activity.
|
void |
performWithoutResponse() |
Performs the prepared activity but does not respond to the client.
|
void |
prepare(java.lang.String transletName) |
Prepare for the activity.
|
void |
prepare(java.lang.String transletName,
MethodType requestMethod) |
Prepare for the activity.
|
void |
prepare(java.lang.String transletName,
java.lang.String requestMethod) |
Prepare for the activity.
|
void |
registerAspectRule(AspectRule aspectRule) |
Register an aspect rule dynamically.
|
backupCurrentActivity, containsBean, containsBean, getActivityContext, getAfterAdviceResult, getAfterAdviceRuleList, getApplicationAdapter, getAroundAdviceResult, getAspectAdviceBean, getAspectRuleRegistry, getBean, getBean, getBean, getBean, getBeanRegistry, getBeforeAdviceResult, getBeforeAdviceRuleList, getConfigBean, getCurrentActivity, getEnvironment, getExceptionRuleList, getFinallyAdviceResult, getFinallyAdviceRuleList, getRaisedException, getRequestAdapter, getResponseAdapter, getRootCauseOfRaisedException, getSessionAdapter, getSetting, getTemplateProcessor, getTransletRuleRegistry, isExceptionRaised, isIncluded, prepareAspectAdviceRule, putAdviceResult, putAspectAdviceBean, removeCurrentActivity, saveCurrentActivity, setIncluded, setRaisedException, setRequestAdapter, setResponseAdapter, setSessionAdapter, terminate, terminate, touchAspectAdviceRuleRegistryexecuteAdvice, executeAdvice, executeAdvice, executeAdviceWithoutThrow, executeAdviceWithoutThrow, handleException, handleExceptionpublic DefaultActivity(ActivityContext context)
context - the activity contextpublic <T extends Activity> T newActivity()
ActivityT - the type of the activitypublic void prepare(java.lang.String transletName)
ActivitytransletName - the translet namepublic void prepare(java.lang.String transletName,
java.lang.String requestMethod)
ActivitytransletName - the translet namerequestMethod - the request methodpublic void prepare(java.lang.String transletName,
MethodType requestMethod)
ActivitytransletName - the translet namerequestMethod - the request methodpublic void perform()
Activitypublic void performWithoutResponse()
Activitypublic void finish()
Activitypublic MethodType getRequestMethod()
Activitypublic java.lang.String getTransletName()
Activitypublic Translet getTranslet()
Activitypublic ProcessResult getProcessResult()
Activitypublic java.lang.Object getProcessResult(java.lang.String actionId)
Activitynull if the action does not exist.actionId - the specified action idpublic boolean isResponseReserved()
Activitypublic void registerAspectRule(AspectRule aspectRule)
ActivityregisterAspectRule in interface ActivityregisterAspectRule in class AbstractActivityaspectRule - the aspect ruleCopyright © 2008–2018 The Aspectran Project. All rights reserved.