static void |
ApiBuilder.crud(io.javalin.apibuilder.CrudHandler crudHandler,
RouteRole... roles) |
Adds a CrudHandler handler to the current path with the given roles to the Javalin instance.
|
static void |
ApiBuilder.crud(String path,
io.javalin.apibuilder.CrudHandler crudHandler,
RouteRole... roles) |
Adds a CrudHandler handler to the specified path with the given roles to the Javalin instance.
|
static void |
ApiBuilder.delete(Handler handler,
RouteRole... roles) |
Adds a DELETE request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.delete(String path,
Handler handler,
RouteRole... roles) |
Adds a DELETE request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.get(Handler handler,
RouteRole... roles) |
Adds a GET request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.get(String path,
Handler handler,
RouteRole... roles) |
Adds a GET request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.head(Handler handler,
RouteRole... roles) |
Adds a HEAD request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.head(String path,
Handler handler,
RouteRole... roles) |
Adds a HEAD request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.patch(Handler handler,
RouteRole... roles) |
Adds a PATCH request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.patch(String path,
Handler handler,
RouteRole... roles) |
Adds a PATCH request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.post(Handler handler,
RouteRole... roles) |
Adds a POST request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.post(String path,
Handler handler,
RouteRole... roles) |
Adds a POST request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.put(Handler handler,
RouteRole... roles) |
Adds a PUT request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.put(String path,
Handler handler,
RouteRole... roles) |
Adds a PUT request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.sse(String path,
Consumer<io.javalin.http.sse.SseClient> client,
RouteRole... roles) |
|
static void |
ApiBuilder.sse(Consumer<io.javalin.http.sse.SseClient> client,
RouteRole... roles) |
|
static void |
ApiBuilder.ws(String path,
Consumer<WsConfig> ws,
RouteRole... roles) |
Adds a WebSocket handler with the given roles for the specified path.
|
static void |
ApiBuilder.ws(Consumer<WsConfig> ws,
RouteRole... roles) |
Adds a WebSocket handler with the given roles for the current path.
|