public class MadvocRouter.ActionBuilder
extends java.lang.Object
Constructor and Description |
---|
ActionBuilder() |
Modifier and Type | Method and Description |
---|---|
MadvocRouter.ActionBuilder |
alias(java.lang.String aliasPath)
Defines path alias.
|
MadvocRouter.ActionBuilder |
async(boolean async)
Defines async execution flag.
|
MadvocRouter.ActionBuilder |
auth(boolean auth) |
MadvocRouter |
bind()
Binds and finalize action runtime configuration.
|
MadvocRouter.ActionBuilder |
filterBy(java.lang.Class<? extends ActionFilter>... filters)
Appends list of filter to the list of action filters.
|
MadvocRouter.ActionBuilder |
filterBy(java.lang.Class<? extends ActionFilter> filter)
Appends single filter to the list of action filters.
|
MadvocRouter.ActionBuilder |
httpMethod(java.lang.String method)
Defines HTTP method.
|
MadvocRouter.ActionBuilder |
interceptBy(java.lang.Class<? extends ActionInterceptor>... interceptors)
Appends list of interceptors to the list of action interceptors.
|
MadvocRouter.ActionBuilder |
interceptBy(java.lang.Class<? extends ActionInterceptor> interceptor)
Appends single interceptor to the list of action interceptors.
|
boolean |
isSet()
Returns
true when minimum configuration is provided. |
MadvocRouter.ActionBuilder |
mapTo(ActionHandler actionHandler) |
MadvocRouter.ActionBuilder |
mapTo(java.lang.Class actionClass,
java.lang.reflect.Method actionMethod)
Defines action class and method to map.
|
MadvocRouter.ActionBuilder |
mapTo(java.lang.Class actionClass,
java.lang.String actionMethodName)
Defines action class and method to map.
|
MadvocRouter.ActionBuilder |
mapTo(java.lang.reflect.Method actionMethod)
Defines action method.
|
MadvocRouter.ActionBuilder |
path(java.lang.String path)
Defines action path.
|
MadvocRouter.ActionBuilder |
path(java.lang.String method,
java.lang.String path)
Defines HTTP method name and action path.
|
MadvocRouter.ActionBuilder |
renderWith(java.lang.Class<? extends ActionResult> actionResult)
Defines action result for this action.
|
MadvocRouter.ActionBuilder |
resultBase(java.lang.String resultBasePath)
Defines result base path.
|
public MadvocRouter.ActionBuilder path(java.lang.String path)
public MadvocRouter.ActionBuilder httpMethod(java.lang.String method)
public MadvocRouter.ActionBuilder path(java.lang.String method, java.lang.String path)
path(String)
public MadvocRouter.ActionBuilder mapTo(java.lang.Class actionClass, java.lang.reflect.Method actionMethod)
public MadvocRouter.ActionBuilder mapTo(java.lang.reflect.Method actionMethod)
public MadvocRouter.ActionBuilder mapTo(java.lang.Class actionClass, java.lang.String actionMethodName)
public MadvocRouter.ActionBuilder mapTo(ActionHandler actionHandler)
public MadvocRouter.ActionBuilder interceptBy(java.lang.Class<? extends ActionInterceptor>... interceptors)
public MadvocRouter.ActionBuilder interceptBy(java.lang.Class<? extends ActionInterceptor> interceptor)
public MadvocRouter.ActionBuilder filterBy(java.lang.Class<? extends ActionFilter>... filters)
public MadvocRouter.ActionBuilder filterBy(java.lang.Class<? extends ActionFilter> filter)
public MadvocRouter.ActionBuilder alias(java.lang.String aliasPath)
public MadvocRouter.ActionBuilder renderWith(java.lang.Class<? extends ActionResult> actionResult)
public MadvocRouter.ActionBuilder async(boolean async)
public MadvocRouter.ActionBuilder auth(boolean auth)
public MadvocRouter.ActionBuilder resultBase(java.lang.String resultBasePath)
public MadvocRouter bind()
public boolean isSet()
true
when minimum configuration is provided.
If so, you can call bind()
to complete the binding.
This indicates that action path etc is already set in the line.Copyright © 2003-present Jodd Team