| Package | Description |
|---|---|
| io.javalin | |
| io.javalin.apibuilder | |
| io.javalin.core.security |
| Modifier and Type | Method and Description |
|---|---|
Javalin |
Javalin.addHandler(HandlerType handlerType,
java.lang.String path,
Handler handler,
java.util.Set<Role> roles)
Adds a request handler for the specified handlerType and path to the instance.
|
Javalin |
Javalin.delete(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a DELETE request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.get(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a GET request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.head(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a HEAD request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.options(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a OPTIONS request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.patch(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a PATCH request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.post(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a POST request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.put(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a PUT request handler with the given roles for the specified path to the instance.
|
Javalin |
Javalin.sse(java.lang.String path,
java.util.function.Consumer<SseClient> client,
java.util.Set<Role> permittedRoles)
Adds a lambda handler for a Server Sent Event connection on the specified path.
|
Javalin |
Javalin.ws(java.lang.String path,
java.util.function.Consumer<WsHandler> ws,
java.util.Set<Role> permittedRoles)
Adds a WebSocket handler on the specified path with the specified roles.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ApiBuilder.crud(CrudHandler crudHandler,
java.util.Set<Role> permittedRoles)
Adds a CrudHandler handler to the current path with the given roles to the
Javalin instance. |
static void |
ApiBuilder.crud(java.lang.String path,
CrudHandler crudHandler,
java.util.Set<Role> permittedRoles)
Adds a CrudHandler handler to the specified path with the given roles to the
Javalin instance. |
static void |
ApiBuilder.delete(Handler handler,
java.util.Set<Role> permittedRoles)
Adds a DELETE request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.delete(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a DELETE request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.get(Handler handler,
java.util.Set<Role> permittedRoles)
Adds a GET request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.get(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a GET request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.head(Handler handler,
java.util.Set<Role> permittedRoles)
Adds a HEAD request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.head(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a HEAD request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.patch(Handler handler,
java.util.Set<Role> permittedRoles)
Adds a PATCH request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.patch(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a PATCH request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.post(Handler handler,
java.util.Set<Role> permittedRoles)
Adds a POST request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.post(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a POST request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.put(Handler handler,
java.util.Set<Role> permittedRoles)
Adds a PUT request handler with the given roles for the current path to the instance.
|
static void |
ApiBuilder.put(java.lang.String path,
Handler handler,
java.util.Set<Role> permittedRoles)
Adds a PUT request handler with the given roles for the specified path to the instance.
|
static void |
ApiBuilder.sse(java.util.function.Consumer<SseClient> client,
java.util.Set<Role> permittedRoles) |
static void |
ApiBuilder.sse(java.lang.String path,
java.util.function.Consumer<SseClient> client,
java.util.Set<Role> permittedRoles) |
static void |
ApiBuilder.ws(java.util.function.Consumer<WsHandler> ws,
java.util.Set<Role> permittedRoles)
Adds a WebSocket handler with the given roles for the current path.
|
static void |
ApiBuilder.ws(java.lang.String path,
java.util.function.Consumer<WsHandler> ws,
java.util.Set<Role> permittedRoles)
Adds a WebSocket handler with the given roles for the specified path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AccessManager.manage(Handler handler,
Context ctx,
java.util.Set<Role> permittedRoles) |
Copyright © 2021. All Rights Reserved.