| Package | Description |
|---|---|
| io.javalin | |
| io.javalin.apibuilder | |
| io.javalin.core | |
| io.javalin.core.security | |
| io.javalin.http |
| Modifier and Type | Method and Description |
|---|---|
Javalin |
Javalin.addHandler(HandlerType httpMethod,
java.lang.String path,
Handler handler)
Adds a request handler for the specified handlerType and path to the instance.
|
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.after(Handler handler)
Adds an AFTER request handler for all routes in the instance.
|
Javalin |
Javalin.after(java.lang.String path,
Handler handler)
Adds an AFTER request handler for the specified path to the instance.
|
Javalin |
Javalin.before(Handler handler)
Adds a BEFORE request handler for all routes in the instance.
|
Javalin |
Javalin.before(java.lang.String path,
Handler handler)
Adds a BEFORE request handler for the specified path to the instance.
|
Javalin |
Javalin.delete(java.lang.String path,
Handler handler)
Adds a DELETE request handler for the specified 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.error(int statusCode,
Handler handler)
Adds an error mapper to the instance.
|
Javalin |
Javalin.error(int statusCode,
java.lang.String contentType,
Handler handler)
Adds an error mapper for the specified content-type to the instance.
|
Javalin |
Javalin.get(java.lang.String path,
Handler handler)
Adds a GET request handler 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)
Adds a HEAD request handler 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)
Adds a OPTIONS request handler 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)
Adds a PATCH request handler 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)
Adds a POST request handler 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)
Adds a PUT request handler 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.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ApiBuilder.after(Handler handler)
Adds a AFTER request handler for the current path to the
Javalin instance. |
static void |
ApiBuilder.after(java.lang.String path,
Handler handler)
Adds an AFTER request handler for the specified path to the
Javalin instance. |
static void |
ApiBuilder.before(Handler handler)
Adds a BEFORE request handler for the current path to the
Javalin instance. |
static void |
ApiBuilder.before(java.lang.String path,
Handler handler)
Adds a BEFORE request handler for the specified path to the
Javalin instance. |
static void |
ApiBuilder.delete(Handler handler)
Adds a DELETE request handler for the current path 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)
Adds a DELETE request handler for the specified path to the
Javalin 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)
Adds a GET request handler for the current path to the
Javalin 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)
Adds a GET request handler for the specified path to the
Javalin 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)
Adds a HEAD request handler for the current path to the
Javalin 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)
Adds a HEAD request handler for the specified path to the
Javalin 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)
Adds a PATCH request handler for the current path to the
Javalin 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)
Adds a PATCH request handler for the specified path to the
Javalin 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)
Adds a POST request handler for the current path to the
Javalin 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)
Adds a POST request handler for the specified path to the
Javalin 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)
Adds a PUT request handler for the current path to the
Javalin 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)
Adds a PUT request handler for the specified path to the
Javalin 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.
|
| Modifier and Type | Method and Description |
|---|---|
JavalinConfig |
JavalinConfig.addSinglePageHandler(java.lang.String path,
Handler customHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
AccessManager.manage(Handler handler,
Context ctx,
java.util.Set<Role> permittedRoles) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ErrorHandler
A handler for use with
Javalin.error(int, Handler). |
Copyright © 2021. All Rights Reserved.