public abstract class MadvocRouter extends java.lang.Object implements MadvocComponentLifecycle.Start
Modifier and Type | Class and Description |
---|---|
class |
MadvocRouter.ActionBuilder |
Modifier and Type | Field and Description |
---|---|
protected ActionMethodParser |
actionMethodParser |
protected ActionsManager |
actionsManager |
protected FiltersManager |
filtersManager |
protected InterceptorsManager |
interceptorsManager |
Constructor and Description |
---|
MadvocRouter() |
Modifier and Type | Method and Description |
---|---|
static MadvocRouter |
create()
Creates new instance of
MadvocRouter . |
MadvocRouter.ActionBuilder |
delete(java.lang.String path)
Maps a DELETE path.
|
<T extends ActionFilter> |
filter(java.lang.Class<T> actionFilterClass)
Returns action filter instance for further configuration.
|
<T extends ActionFilter> |
filter(java.lang.Class<T> actionFilterClass,
java.util.function.Consumer<T> filterConsumer) |
MadvocRouter.ActionBuilder |
get(java.lang.String path)
Maps a GET path.
|
<T extends ActionInterceptor> |
interceptor(java.lang.Class<T> actionInterceptorClass)
Configures an interceptor.
|
<T extends ActionInterceptor> |
interceptor(java.lang.Class<T> actionInterceptorClass,
java.util.function.Consumer<T> interceptorConsumer)
Configures an interceptor.
|
MadvocRouter.ActionBuilder |
options(java.lang.String path)
Maps an OPTION path.
|
MadvocRouter.ActionBuilder |
post(java.lang.String path)
Maps a POST path.
|
MadvocRouter.ActionBuilder |
put(java.lang.String path)
Maps a PUT path.
|
MadvocRouter.ActionBuilder |
route()
Starts with action registration i.e. route binding.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start
@PetiteInject protected ActionsManager actionsManager
@PetiteInject protected ActionMethodParser actionMethodParser
@PetiteInject protected FiltersManager filtersManager
@PetiteInject protected InterceptorsManager interceptorsManager
public static MadvocRouter create()
MadvocRouter
.
Created instance is NOT wired with dependencies!public <T extends ActionInterceptor> MadvocRouter interceptor(java.lang.Class<T> actionInterceptorClass)
public <T extends ActionInterceptor> MadvocRouter interceptor(java.lang.Class<T> actionInterceptorClass, java.util.function.Consumer<T> interceptorConsumer)
public <T extends ActionFilter> MadvocRouter filter(java.lang.Class<T> actionFilterClass)
public <T extends ActionFilter> MadvocRouter filter(java.lang.Class<T> actionFilterClass, java.util.function.Consumer<T> filterConsumer)
public MadvocRouter.ActionBuilder route()
public MadvocRouter.ActionBuilder get(java.lang.String path)
public MadvocRouter.ActionBuilder post(java.lang.String path)
public MadvocRouter.ActionBuilder put(java.lang.String path)
public MadvocRouter.ActionBuilder delete(java.lang.String path)
public MadvocRouter.ActionBuilder options(java.lang.String path)
Copyright © 2003-present Jodd Team