| Package | Description |
|---|---|
| io.javalin | |
| io.javalin.apibuilder | |
| io.javalin.core | |
| io.javalin.core.security |
| Modifier and Type | Method and Description |
|---|---|
Javalin |
Javalin.addHandler(io.javalin.http.HandlerType httpMethod,
String path,
Handler handler)
Adds a request handler for the specified handlerType and path to the instance.
|
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.after(Handler handler)
Adds an AFTER request handler for all routes in the instance.
|
Javalin |
Javalin.after(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(String path,
Handler handler)
Adds a BEFORE request handler for the specified path to the instance.
|
Javalin |
Javalin.delete(String path,
Handler handler)
Adds a DELETE request handler for the specified 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.error(int statusCode,
Handler handler)
Adds an error mapper to the instance.
|
Javalin |
Javalin.error(int statusCode,
String contentType,
Handler handler)
Adds an error mapper for the specified content-type to the instance.
|
Javalin |
Javalin.get(String path,
Handler handler)
Adds a GET request handler 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)
Adds a HEAD request handler 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)
Adds a OPTIONS request handler 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)
Adds a PATCH request handler 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)
Adds a POST request handler 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)
Adds a PUT request handler 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.
|
| 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(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(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,
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)
Adds a DELETE request handler for the specified path to the
Javalin 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)
Adds a GET request handler for the current path to the
Javalin 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)
Adds a GET request handler for the specified path to the
Javalin 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)
Adds a HEAD request handler for the current path to the
Javalin 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)
Adds a HEAD request handler for the specified path to the
Javalin 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)
Adds a PATCH request handler for the current path to the
Javalin 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)
Adds a PATCH request handler for the specified path to the
Javalin 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)
Adds a POST request handler for the current path to the
Javalin 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)
Adds a POST request handler for the specified path to the
Javalin 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)
Adds a PUT request handler for the current path to the
Javalin 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)
Adds a PUT request handler for the specified path to the
Javalin 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JavalinConfig.addSinglePageHandler(String hostedPath,
Handler customHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
AccessManager.manage(Handler handler,
io.javalin.http.Context ctx,
Set<RouteRole> routeRoles) |
Copyright © 2021. All rights reserved.