Class HttpServers


  • public final class HttpServers
    extends java.lang.Object
    Factory methods for building HTTP Servers backed by ServerContext.
    • Method Detail

      • forPort

        public static HttpServerBuilder forPort​(int port)
        New HttpServerBuilder instance.
        Parameters:
        port - The listen port for the server.
        Returns:
        a new builder.
      • forAddress

        public static HttpServerBuilder forAddress​(java.net.SocketAddress socketAddress)
        New HttpServerBuilder instance.
        Parameters:
        socketAddress - The listen address for the server.
        Returns:
        a new builder.