public class WebViewServer extends io.vertx.core.AbstractVerticle
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,App> |
_apps |
static java.util.Map<java.lang.String,CompositeActor> |
_models |
static java.lang.String |
WS_PATH |
static java.lang.String |
WS_RUNWF_PATH |
Constructor and Description |
---|
WebViewServer() |
Modifier and Type | Method and Description |
---|---|
static void |
_addModel(CompositeActor model)
Add a model to the set managed by the server.
|
void |
executeApp(io.vertx.core.json.JsonObject json,
io.vertx.ext.auth.User user,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
Execute an app.
|
void |
executeWorkflow(io.vertx.core.json.JsonObject json,
io.vertx.ext.auth.User user,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
Execute a workflow.
|
static java.lang.String |
findFile(java.lang.String name)
Search for a file.
|
static java.util.List<io.vertx.core.json.JsonObject> |
getClientBuffer(NamedObj model)
Get the client buffers for a workflow.
|
static void |
initialize()
Called during initialization.
|
void |
log(io.vertx.core.http.HttpServerRequest request,
io.vertx.ext.auth.User user,
int status,
long timestamp)
Log an http server request.
|
void |
log(io.vertx.core.http.HttpServerRequest request,
io.vertx.ext.auth.User user,
int status,
long timestamp,
long length)
Log an http server request.
|
void |
log(io.vertx.core.http.ServerWebSocket socket,
java.lang.String command,
java.lang.String path) |
void |
log(io.vertx.core.http.ServerWebSocket socket,
java.lang.String command,
java.lang.String path,
io.vertx.core.buffer.Buffer buffer) |
static void |
removeModel(NamedObj model) |
static void |
shutdown()
Called during shutdown.
|
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
static io.vertx.core.Vertx |
vertx() |
public static final java.lang.String WS_PATH
public static final java.lang.String WS_RUNWF_PATH
public static final java.util.Map<java.lang.String,CompositeActor> _models
public WebViewServer()
public void executeApp(io.vertx.core.json.JsonObject json, io.vertx.ext.auth.User user, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
json
- The JSON object with the workflow name and any parameters.handler
- Asynchronous handler to receive the a JSON object with any results.public void executeWorkflow(io.vertx.core.json.JsonObject json, io.vertx.ext.auth.User user, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
json
- The JSON object with the workflow name and any parameters.handler
- Asynchronous handler to receive the a JSON object with any results.public static java.lang.String findFile(java.lang.String name)
name
- The name of the file to search for.public static java.util.List<io.vertx.core.json.JsonObject> getClientBuffer(NamedObj model)
public static void initialize()
public void log(io.vertx.core.http.HttpServerRequest request, io.vertx.ext.auth.User user, int status, long timestamp)
request
- The requestuser
- The userstatus
- The statustimestamp
- The timestamp when the request occurred.public void log(io.vertx.core.http.HttpServerRequest request, io.vertx.ext.auth.User user, int status, long timestamp, long length)
request
- The requestuser
- The userstatus
- The statustimestamp
- The timestamp when the request occurred.length
- The length of the file successfully sent to the client.public void log(io.vertx.core.http.ServerWebSocket socket, java.lang.String command, java.lang.String path)
public void log(io.vertx.core.http.ServerWebSocket socket, java.lang.String command, java.lang.String path, io.vertx.core.buffer.Buffer buffer)
public void start() throws java.lang.Exception
start
in class io.vertx.core.AbstractVerticle
java.lang.Exception
public static void removeModel(NamedObj model)
public static void shutdown()
public void stop() throws java.lang.Exception
stop
in class io.vertx.core.AbstractVerticle
java.lang.Exception
public static io.vertx.core.Vertx vertx()
public static void _addModel(CompositeActor model) throws java.lang.Exception
java.lang.Exception