| Package | Description |
|---|---|
| io.javalin | |
| io.javalin.apibuilder | |
| io.javalin.core.security |
| Modifier and Type | Method and Description |
|---|---|
Javalin |
Javalin.addHandler(io.javalin.http.HandlerType handlerType,
String path,
Handler handler,
RouteRole... roles)
Adds a request handler for the specified handlerType and path to the instance.
|
Javalin |
Javalin.delete(String path,
Handler handler,
RouteRole... roles)
Adds a DELETE request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.get(String path,
Handler handler,
RouteRole... roles)
Adds a GET request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.head(String path,
Handler handler,
RouteRole... roles)
Adds a HEAD request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.options(String path,
Handler handler,
RouteRole... roles)
Adds a OPTIONS request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.patch(String path,
Handler handler,
RouteRole... roles)
Adds a PATCH request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.post(String path,
Handler handler,
RouteRole... roles)
Adds a POST request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.put(String path,
Handler handler,
RouteRole... roles)
Adds a PUT request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.sse(String path,
Consumer<io.javalin.http.sse.SseClient> client,
RouteRole... roles)
Adds a lambda handler for a Server Sent Event connection on the specified path.
|
Javalin |
Javalin.ws(String path,
Consumer<WsConfig> ws,
RouteRole... roles)
Adds a WebSocket handler on the specified path with the specified roles.
|
| Modifier and Type | Method and Description |
|---|---|
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(Consumer<io.javalin.http.sse.SseClient> client,
RouteRole... roles) |
static void |
ApiBuilder.sse(String path,
Consumer<io.javalin.http.sse.SseClient> client,
RouteRole... roles) |
static void |
ApiBuilder.ws(Consumer<WsConfig> ws,
RouteRole... roles)
Adds a WebSocket handler with the given roles for the current path.
|
static void |
ApiBuilder.ws(String path,
Consumer<WsConfig> ws,
RouteRole... roles)
Adds a WebSocket handler with the given roles for the specified path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AccessManager.manage(Handler handler,
io.javalin.http.Context ctx,
Set<RouteRole> routeRoles) |
Copyright © 2022. All rights reserved.