... | ... | @@ -15,7 +15,7 @@ cd ../example-delight-server |
|
|
mvn exec:java -Dexec.mainClass=de.dfki.delight.example.ExampleEmbeddedServer
|
|
|
```
|
|
|
This fires up the server on port 8080.
|
|
|
Browse to <http://localhost:8080/example-delight-webapp/delight> to read the online documentation.
|
|
|
Browse to <http://localhost:8080/example-delight-webapp/> to read the online documentation.
|
|
|
|
|
|
|
|
|
Here's the code
|
... | ... | @@ -39,7 +39,7 @@ public class ExampleEmbeddedServer |
|
|
|
|
|
DelightServer server = new DelightServer(cfg)
|
|
|
.port( 8080 )
|
|
|
.contextPath( "/example-delight-webapp/delight" )
|
|
|
.contextPath( "/example-delight-webapp/" )
|
|
|
.asyncTimeout(5, TimeUnit.MINUTES)
|
|
|
.init( backend -> {
|
|
|
backend.addHandlerByClass("myHandler", ExampleHandler.class);
|
... | ... | |