public class ApplicationRouter extends Object implements org.vertx.java.core.Handler<org.vertx.java.core.http.HttpServerRequest>
| Constructor and Description |
|---|
ApplicationRouter() |
ApplicationRouter(Collection<RouteHandler> routes,
Iterable<RouteCollection> routeCollections) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(RouteBinding handler)
Specify a handler that will be called for all HTTP methods
|
protected org.commonjava.freeki.infra.route.ApplicationRouter.BindingContext |
findBinding(Method method,
String path) |
<T> T |
getResourceInstance(Class<T> cls) |
void |
handle(org.vertx.java.core.http.HttpServerRequest request) |
void |
noMatch(org.vertx.java.core.Handler<org.vertx.java.core.http.HttpServerRequest> handler)
Specify a handler that will be called when no other handlers match.
|
protected void |
parseParams(org.commonjava.freeki.infra.route.ApplicationRouter.BindingContext ctx,
org.vertx.java.core.http.HttpServerRequest request) |
public ApplicationRouter()
public ApplicationRouter(Collection<RouteHandler> routes, Iterable<RouteCollection> routeCollections)
public <T> T getResourceInstance(Class<T> cls)
public void handle(org.vertx.java.core.http.HttpServerRequest request)
handle in interface org.vertx.java.core.Handler<org.vertx.java.core.http.HttpServerRequest>protected void parseParams(org.commonjava.freeki.infra.route.ApplicationRouter.BindingContext ctx,
org.vertx.java.core.http.HttpServerRequest request)
protected org.commonjava.freeki.infra.route.ApplicationRouter.BindingContext findBinding(Method method, String path)
public void bind(RouteBinding handler)
pattern - The simple patternhandler - The handler to callpublic void noMatch(org.vertx.java.core.Handler<org.vertx.java.core.http.HttpServerRequest> handler)
handler - Copyright © 2013. All Rights Reserved.