Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ddworak committed Aug 29, 2023
1 parent 067a324 commit bedf0d5
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BootstrappingBackendView extends View with CssView {
p("This chapter covers:"),
ul(GuideStyles.defaultList)(
li("Implementation of the server-side RPC endpoint."),
li("Configuration of the ", a(href := JettyHomepage, target := "_blank")("Jetty"), " webserver to handle RPC and static files requests."),
li("Configuration of the ", a(href := JettyHomepage, target := "_blank")("Jetty"), " 10 webserver to handle RPC and static files requests."),
li("Implementation of a simple system launcher.")
),
p("The backend application is expected to serve static files like HTML, JS or images and handle RPC requests from client applications."),
Expand Down Expand Up @@ -75,18 +75,20 @@ class BootstrappingBackendView extends View with CssView {
|
|class ApplicationServer(val port: Int, resourceBase: String) {
| private val server = new Server(port)
| private val contextHandler = new ServletContextHandler
| private val contextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS)
| private val appHolder = createAppHolder()
| private val atmosphereHolder = createAtmosphereHolder()
|
| contextHandler.setSessionHandler(new SessionHandler)
| contextHandler.getSessionHandler.addEventListener(
| new org.atmosphere.cpr.SessionSupport()
| )
| contextHandler.addServlet(atmosphereHolder, "/atm/*")
| contextHandler.addServlet(appHolder, "/*")
| server.setHandler(contextHandler)
|
| //required for org.atmosphere.container.JSR356AsyncSupport
| JavaxWebSocketServletContainerInitializer.configure(contextHandler, null)
|
| def start(): Unit = server.start()
|
| def stop(): Unit = server.stop()
Expand Down

0 comments on commit bedf0d5

Please sign in to comment.