Package za.co.wethinkcode.robots.webapi
Class WorldApiServer
java.lang.Object
za.co.wethinkcode.robots.webapi.WorldApiServer
The Robot World Web API. Only responsible for wiring up which HTTP
request maps to which
WorldApiHandler method and controlling the
embedded server's lifecycle.-
Constructor Summary
ConstructorsConstructorDescriptionWorldApiServer(WorldConfig worldConfig, World world, WorldRepository repository) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(io.javalin.config.JavalinConfig config, WorldApiHandler handler) io.javalin.Javalinstart(int port) io.javalin.Javalinstop()
-
Constructor Details
-
WorldApiServer
-
-
Method Details
-
configure
-
start
public io.javalin.Javalin start(int port) -
stop
public io.javalin.Javalin stop()
-