public class RouteChain extends Object implements Route.Chain
Constructor and Description |
---|
RouteChain(RequestImpl req,
ResponseImpl rsp,
List<Route> routes) |
Modifier and Type | Method and Description |
---|---|
void |
next(String prefix,
Request req,
Response rsp)
Invokes the next route in the chain where
Route.name() starts with the given prefix. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
next
public RouteChain(RequestImpl req, ResponseImpl rsp, List<Route> routes)
public void next(String prefix, Request req, Response rsp) throws Throwable
Route.Chain
Route.name()
starts with the given prefix.next
in interface Route.Chain
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.