public static interface Route.Chain
Modifier and Type | Method and Description |
---|---|
default void |
next(Request req,
Response rsp)
Invokes the next route in the chain.
|
void |
next(String prefix,
Request req,
Response rsp)
Invokes the next route in the chain where
Route.name() starts with the given prefix. |
void next(String prefix, Request req, Response rsp) throws Throwable
Route.name()
starts with the given prefix.prefix
- Iterates over the route chain and keep routes that start with the given prefix.req
- A HTTP request.rsp
- A HTTP response.Throwable
- If invocation goes wrong.Copyright © 2017. All rights reserved.