| Constructor and Description |
|---|
RouterImpl(com.google.inject.Injector injector) |
| Modifier and Type | Method and Description |
|---|---|
void |
compileRoutes()
Compile all the routes that have been registered with the router.
|
RouteBuilder |
DELETE() |
RouteBuilder |
GET() |
Route |
getRouteFor(String httpMethod,
String uri)
Get the route for the given method and URI
|
RouteBuilder |
OPTIONS() |
RouteBuilder |
POST() |
RouteBuilder |
PUT() |
public Route getRouteFor(String httpMethod, String uri)
RoutergetRouteFor in interface RouterhttpMethod - The methoduri - The URIpublic void compileRoutes()
RoutercompileRoutes in interface Routerpublic RouteBuilder GET()
public RouteBuilder POST()
public RouteBuilder PUT()
public RouteBuilder DELETE()
public RouteBuilder OPTIONS()
Copyright © 2013. All Rights Reserved.