Class VxHttpServer

java.lang.Object
org.noear.solon.server.vertx.VxHttpServer
All Implemented Interfaces:
ServerLifecycle, ServerLifecycle

public class VxHttpServer extends Object implements ServerLifecycle
Since:
2.9
Author:
noear
  • Constructor Details

    • VxHttpServer

      public VxHttpServer(HttpServerProps props, org.noear.solon.core.AppContext context, boolean allowExternalHandler)
  • Method Details

    • isSecure

      public boolean isSecure()
    • enableSsl

      public void enableSsl(boolean enable, @Nullable SSLContext sslContext)
    • enableHttp2

      public void enableHttp2(boolean enable)
    • enableWebSocket

      public void enableWebSocket(boolean enableWebSocket)
    • setHandler

      public void setHandler(org.noear.solon.core.handle.Handler handler)
    • setWorkExecutor

      public void setWorkExecutor(Executor executor)
    • start

      public void start(String host, int port) throws Throwable
      Specified by:
      start in interface ServerLifecycle
      Specified by:
      start in interface ServerLifecycle
      Throws:
      Throwable
    • stop

      public void stop() throws Throwable
      Specified by:
      stop in interface ServerLifecycle
      Specified by:
      stop in interface ServerLifecycle
      Throws:
      Throwable