public class HeadHandler extends Object implements Route.Decorator
decorator(new HeadHandler());
get("/some", ctx -> "...");
Constructor and Description |
---|
HeadHandler() |
Modifier and Type | Method and Description |
---|---|
Route.Handler |
apply(Route.Handler next)
Chain the decorator within next handler.
|
void |
setRoute(Route route)
Allows a handler to listen for route metadata.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
then, then
@Nonnull public Route.Handler apply(@Nonnull Route.Handler next)
Route.Decorator
apply
in interface Route.Decorator
next
- Next handler.@Nonnull public void setRoute(@Nonnull Route route)
Route.Aware
setRoute
in interface Route.Aware
route
- Route metadata.Copyright © 2019. All rights reserved.