public interface Router
Modifiers | Name | Description |
---|---|---|
interface |
Router.FilterRegistration |
|
interface |
Router.Handler |
|
interface |
Router.RequestFilter |
|
interface |
Router.Route |
Type Params | Return Type | Name and description |
---|---|---|
|
public Router.Route |
delete(java.lang.String path, Handler handler) Create a handler for DELETE requests at a given path |
|
public Router.Route |
get(java.lang.String path, Handler handler) |
|
public Router.Route |
patch(java.lang.String path, Handler handler) Create a handler for PATCH requests at a given path |
|
public Router.Route |
post(java.lang.String path, Handler handler) Create a handler for POST requests at a given path |
|
public Router.Route |
put(java.lang.String path, Handler handler) Create a handler for PUT requests at a given path |
Create a handler for DELETE requests at a given path
path
- The request path pattern, e.g. /users/:id
handler
- A request handler. There can only be one per given route.Create a handler for PATCH requests at a given path
path
- The request path pattern, e.g. /users/:id/change-email
handler
- A request handler. There can only be one per given route.Create a handler for POST requests at a given path
path
- The request path pattern, e.g. /users/create
handler
- A request handler. There can only be one per given route.Create a handler for PUT requests at a given path
path
- The request path pattern, e.g. /users/:id/update
handler
- A request handler. There can only be one per given route.