Class JettyServer

java.lang.Object
org.noear.solon.boot.jetty.JettyServerBase
org.noear.solon.boot.jetty.JettyServer
All Implemented Interfaces:
org.noear.solon.boot.http.HttpServerConfigure, org.noear.solon.boot.ServerLifecycle
Direct Known Subclasses:
JettyServerAddJsp

public class JettyServer extends JettyServerBase implements org.noear.solon.boot.ServerLifecycle
  • Field Details

    • real

      protected org.eclipse.jetty.server.Server real
    • enableWebSocket

      protected boolean enableWebSocket
  • Constructor Details

    • JettyServer

      public JettyServer()
  • Method Details

    • enableWebSocket

      public void enableWebSocket(boolean enableWebSocket)
    • start

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

      public void stop() throws Throwable
      Specified by:
      stop in interface org.noear.solon.boot.ServerLifecycle
      Throws:
      Throwable
    • setup

      protected void setup(String host, int port) throws IOException
      Throws:
      IOException
    • buildHandler

      protected org.eclipse.jetty.ee11.servlet.ServletContextHandler buildHandler() throws IOException
      获取Server Handler
      Throws:
      IOException