Class HttpServerTool

  • All Implemented Interfaces:

    
    public final class HttpServerTool
    
                        

    Server with dynamic handler (delegated to path). Root handler can be replaced at any time without restarting the server.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer runtimePort
      private final URL binding
      private PathHandler path
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpServerTool(HttpServerPort adapter, HttpServerSettings settings, PathHandler path)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getRuntimePort()
      final URL getBinding()
      final PathHandler getPath()
      final Unit setPath(PathHandler path)
      final Unit path(Function1<HandlerBuilder, Unit> block)
      final Unit start()
      final Unit stop()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpServerTool

        HttpServerTool(HttpServerPort adapter, HttpServerSettings settings, PathHandler path)