| Package | Description |
|---|---|
| io.javalin | |
| io.javalin.apibuilder | |
| io.javalin.core |
| Modifier and Type | Method and Description |
|---|---|
Javalin |
Javalin.ws(java.lang.String path,
java.util.function.Consumer<WsHandler> ws)
Adds a WebSocket handler 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.
|
Javalin |
Javalin.wsAfter(java.util.function.Consumer<WsHandler> wsHandler)
Adds a WebSocket after handler for all routes in the instance.
|
Javalin |
Javalin.wsAfter(java.lang.String path,
java.util.function.Consumer<WsHandler> wsHandler)
Adds a WebSocket after handler for the specified path to the instance.
|
Javalin |
Javalin.wsBefore(java.util.function.Consumer<WsHandler> wsHandler)
Adds a WebSocket before handler for all routes in the instance.
|
Javalin |
Javalin.wsBefore(java.lang.String path,
java.util.function.Consumer<WsHandler> wsHandler)
Adds a WebSocket before handler for the specified path to the instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ApiBuilder.ws(java.util.function.Consumer<WsHandler> ws)
Adds a WebSocket handler on the current path.
|
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)
Adds a WebSocket handler on the specified 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.
|
Javalin |
ApiBuilder.wsAfter(java.util.function.Consumer<WsHandler> wsHandler)
Adds a WebSocket after handler for the current path to the
Javalin instance. |
Javalin |
ApiBuilder.wsAfter(java.lang.String path,
java.util.function.Consumer<WsHandler> wsHandler)
Adds a WebSocket after handler for the specified path to the
Javalin instance. |
Javalin |
ApiBuilder.wsBefore(java.util.function.Consumer<WsHandler> wsHandler)
Adds a WebSocket before handler for the current path to the
Javalin instance. |
Javalin |
ApiBuilder.wsBefore(java.lang.String path,
java.util.function.Consumer<WsHandler> wsHandler)
Adds a WebSocket before handler for the specified path to the
Javalin instance. |
| Modifier and Type | Field and Description |
|---|---|
WsHandler |
JavalinConfig.Inner.wsLogger |
| Modifier and Type | Method and Description |
|---|---|
JavalinConfig |
JavalinConfig.wsLogger(java.util.function.Consumer<WsHandler> ws) |
Copyright © 2021. All Rights Reserved.