Class BLHandler

java.lang.Object
ortus.boxlang.web.handlers.BLHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class BLHandler extends Object implements io.undertow.server.HttpHandler
Undertow HttpHandler for BoxLang This mini-server only has one web root for all requests
  • Constructor Details

    • BLHandler

      public BLHandler(String webRoot)
      Create a new BLHandler
      Parameters:
      webRoot - The web root
  • Method Details

    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Handle the request
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Parameters:
      exchange - The HttpServerExchange
      Throws:
      Exception - If an error occurs
    • finalizeResponse

      public void finalizeResponse(BoxHTTPUndertowExchange httpExchange)
      Finalize the response
      Parameters:
      httpExchange - The BoxHTTPUndertowExchange