public class RouteChain extends Object implements Route.Chain
Constructor and Description |
---|
RouteChain(Iterator<Route> routes) |
RouteChain(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 void next(String prefix, Request req, Response rsp) throws Exception
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.Exception
- If invocation goes wrong.Copyright © 2015. All rights reserved.