public class ActionRuntime
extends java.lang.Object
Constructor and Description |
---|
ActionRuntime(ActionHandler actionHandler,
java.lang.Class actionClass,
java.lang.reflect.Method actionClassMethod,
ActionFilter[] filters,
ActionInterceptor[] interceptors,
ActionDefinition actionDefinition,
java.lang.Class<? extends ActionResult> actionResult,
java.lang.Class<? extends ActionResult> defaultActionResult,
boolean async,
boolean auth,
ScopeData scopeData,
MethodParam[] methodParams) |
Modifier and Type | Method and Description |
---|---|
void |
bind(RouteChunk routeChunk)
Binds a route chunk to this configuration.
|
java.lang.String |
createActionString()
Returns action string in form 'actionClass#actionMethod'.
|
java.lang.Class |
getActionClass()
Returns action class.
|
java.lang.reflect.Method |
getActionClassMethod()
Returns action class method.
|
ActionHandler |
getActionHandler()
Returns action handler.
|
java.lang.String |
getActionMethod()
Returns action method.
|
java.lang.String |
getActionPath()
Returns action path.
|
java.lang.Class<? extends ActionResult> |
getActionResult()
Returns action result class that will render the result.
|
java.lang.Class<? extends ActionResult> |
getDefaultActionResult()
Returns default action result.
|
ActionFilter[] |
getFilters()
Returns filters instances.
|
ActionInterceptor[] |
getInterceptors()
Returns interceptor instances.
|
MethodParam[] |
getMethodParams()
Returns method parameters information, or
null if method has no params. |
java.lang.String |
getResultBasePath()
Returns action result base path.
|
RouteChunk |
getRouteChunk()
Returns route chunk associated with this configuration.
|
ScopeData |
getScopeData()
Returns scope data.
|
boolean |
hasArguments()
Returns
true if action has arguments. |
boolean |
isActionHandlerDefined()
Returns
true if action handler is defined. |
boolean |
isAsync()
Returns
true if action is asynchronous. |
boolean |
isAuthenticated() |
java.lang.String |
toString() |
public ActionRuntime(ActionHandler actionHandler, java.lang.Class actionClass, java.lang.reflect.Method actionClassMethod, ActionFilter[] filters, ActionInterceptor[] interceptors, ActionDefinition actionDefinition, java.lang.Class<? extends ActionResult> actionResult, java.lang.Class<? extends ActionResult> defaultActionResult, boolean async, boolean auth, ScopeData scopeData, MethodParam[] methodParams)
public boolean isActionHandlerDefined()
true
if action handler is defined.public ActionHandler getActionHandler()
public java.lang.Class getActionClass()
public java.lang.reflect.Method getActionClassMethod()
public java.lang.String getActionPath()
public java.lang.String getActionMethod()
public java.lang.String getResultBasePath()
public ActionInterceptor[] getInterceptors()
public ActionFilter[] getFilters()
public boolean isAsync()
true
if action is asynchronous.public boolean isAuthenticated()
public MethodParam[] getMethodParams()
null
if method has no params.public java.lang.Class<? extends ActionResult> getActionResult()
null
.public java.lang.Class<? extends ActionResult> getDefaultActionResult()
public boolean hasArguments()
true
if action has arguments.public ScopeData getScopeData()
public void bind(RouteChunk routeChunk)
public RouteChunk getRouteChunk()
public java.lang.String createActionString()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-present Jodd Team