Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • delight delight
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • delight
  • delightdelight
  • Wiki
  • ExampleServer

ExampleServer · Changes

Page history
Update ExampleServer authored May 20, 2019 by Andreas Lauer's avatar Andreas Lauer
Hide whitespace changes
Inline Side-by-side
ExampleServer.md
View page @ 6d099e71
......@@ -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 ...
Clone repository
  • DocuFeature
  • ExampleServer
  • ExampleWebApp
  • Home
  • ServerSentEventsFeature
  • StatsFeature
  • people
  • xmlrpc
    • Documentation
    • ExampleUsingConverterRegistry
    • ExampleUsingOwnConceteTypes
    • ExampleUsingOwnInterfaceTypes
    • ExampleUsingThirdPartyTypes
    • ExampleUsingXmlRpcBeans
    • ExampleUsingXmlRpcCompliantTypes

Legal Notice, Imprint, Privacy Policy