Class HelidonKt

  • All Implemented Interfaces:

    
    public final class HelidonKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static HttpServer serve(HttpServerSettings settings, HttpHandler handlers) Create a Helidon server and start it.
      final static HttpServer serve(HttpServerSettings settings, Function1<HandlerBuilder, Unit> block) Create a Helidon server and start it.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • serve

         final static HttpServer serve(HttpServerSettings settings, HttpHandler handlers)

        Create a Helidon server and start it. It is a shortcut to avoid passing the adapter.

        Parameters:
        settings - Server settings info .
        handlers - List of HttpHandler handlers used in this server instance.
        Returns:

        The started HttpServer instance.

      • serve

         final static HttpServer serve(HttpServerSettings settings, Function1<HandlerBuilder, Unit> block)

        Create a Helidon server and start it. It is a shortcut to avoid passing the adapter.

        Parameters:
        settings - Server settings info.
        block - Lambda to be used to create the list of HttpHandler handlers used in the server.
        Returns:

        The started HttpServer instance.