Class SinglePageHandler

  • All Implemented Interfaces:

    
    public final class SinglePageHandler
    
                        

    This is just a glorified 404 handler. Ex: app.singlePage.addRootFile("/my-path", "index.html") If no routes or static files are found on "/my-path/" (or any subpath), index.html will be returned

    It also supports custom handlers (as opposed to a file path like above). Ex: app.singlePage.addRootHandler("/my-path", myHandler) If no routes or static files or single page file paths are found on "/my-path/" (or any subpath), myHandler will handle the request.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class SinglePageHandler.Page
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description