Package 

Class SinglePageHandler


  • 
    public final class SinglePageHandler
    
                        

    This is just a glorified 404 handler. Ex: app.addSinglePageRoot("/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.addSinglePageHandler("/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
    • 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