Package 

Class JettyKt

  • All Implemented Interfaces:

    
    public final class JettyKt
    
                        
    • 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, List<ServerHandler> handlers) Create a Jetty server and start it.
      final static HttpServer serve(HttpServerSettings settings, Function1<ServerBuilder, Unit> block) Create a Jetty 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, List<ServerHandler> handlers)

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

        Parameters:
        settings - Server settings info .
        handlers - List of ServerHandler handlers used in this server instance.
      • serve

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

        Create a Jetty 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 ServerHandler handlers used in the server.