Package com.hexagonkt.rest.tools
Class HttpServerTool
-
- All Implemented Interfaces:
public final class HttpServerToolServer with dynamic handler (delegated to path). Root handler can be replaced at any time without restarting the server.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerruntimePortprivate final URLbindingprivate PathHandlerpath
-
Constructor Summary
Constructors Constructor Description HttpServerTool(HttpServerPort adapter, HttpServerSettings settings, PathHandler path)
-
Method Summary
Modifier and Type Method Description final IntegergetRuntimePort()final URLgetBinding()final PathHandlergetPath()final UnitsetPath(PathHandler path)final Unitpath(Function1<HandlerBuilder, Unit> block)final Unitstart()final Unitstop()-
-
Method Detail
-
getRuntimePort
final Integer getRuntimePort()
-
getBinding
final URL getBinding()
-
getPath
final PathHandler getPath()
-
setPath
final Unit setPath(PathHandler path)
-
path
final Unit path(Function1<HandlerBuilder, Unit> block)
-
start
final Unit start()
-
stop
final Unit stop()
-
-
-
-