... | ... | @@ -26,16 +26,15 @@ public class ExampleEmbeddedServer |
|
|
public static void main(String[] args) throws Exception
|
|
|
{
|
|
|
DelightConfig cfg = DelightConfigFinder.getDefaultConfigBuilder()
|
|
|
.usePresentFeatures(true)
|
|
|
|
|
|
.setOption("STRICT_SAME_ORIGIN_POLICY", false)
|
|
|
|
|
|
.setOption("mvn-micro-repo.groupId", "dfki.sds.delight" )
|
|
|
.setOption("mvn-micro-repo.artifactId", "example" )
|
|
|
.setOption("mvn-micro-repo.version", "0.1-alpha-fluent-SNAPSHOT")
|
|
|
|
|
|
.setOption("mvn-micro-repo.delightVersion" , "4.0-SNAPSHOT")
|
|
|
|
|
|
.setOption("stats.logInterval", 10)
|
|
|
.usePresentFeatures(true)
|
|
|
.build();
|
|
|
|
|
|
DelightServer server = new DelightServer(cfg)
|
... | ... | @@ -66,3 +65,4 @@ This code does a bunch of things: |
|
|
* Adjust async timeout (used when the Server-Sent Events feature is active)
|
|
|
* Add handler classes
|
|
|
* Start the server
|
|
|
* Wait ... |