public static interface Route.Handler extends Serializable, Route.Aware
Modifier and Type | Method and Description |
---|---|
Object |
apply(Context ctx)
Execute application code.
|
default Route.Handler |
then(Route.After next)
Chain this after decorator with next and produces a new decorator.
|
setRoute
@Nonnull Object apply(@Nonnull Context ctx) throws Exception
ctx
- Web context.Exception
- If something goes wrong.@Nonnull default Route.Handler then(@Nonnull Route.After next)
next
- Next decorator.Copyright © 2020. All rights reserved.