Package 

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
    • Method Summary

      Modifier and Type Method Description
      final Unit add(String hostedPath, String filePath, Location location)
      final Unit add(String hostedPath, Handler handler)
      final Boolean handle(Context ctx)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait