class JettyServer extends JettyServerBase implements ServerLifecycle {
    protected Server _server = null;

    @Override
    public void start(String host, int port) throws Throwable {
        setup(Solon.app(), host, port);

        _server.start();
    }

    @Override
    public void stop() throws Throwable {
        if (_server != null) {
            _server.stop();
            _server = null;
        }
    }

    protected void setup(SolonApp app, String host, int port) throws IOException {<FILL_FUNCTION_BODY>}

    /**
     * 获取Server Handler
     */
    protected Handler buildHandler() throws IOException {
        return getServletHandler();
    }
}

        Class<?> wsClz = ClassUtil.loadClass("org.eclipse.jetty.websocket.server.WebSocketHandler");


        QueuedThreadPool threadPool = new QueuedThreadPool(
                props.getMaxThreads(props.isIoBound()),
                props.getCoreThreads());

        _server = new Server(threadPool);


        //http or https
        _server.addConnector(getConnector(_server, host, port, true));

        //http add
        for (Integer portAdd : addHttpPorts) {
            _server.addConnector(getConnector(_server, host, portAdd, false));
        }

        //session 支持
        if (Solon.app().enableSessionState()) {
            _server.setSessionIdManager(new DefaultSessionIdManager(_server));
        }

        if (app.enableWebSocket() && wsClz != null) {
            _server.setHandler(new HandlerHub(buildHandler()));
        } else {
            //没有ws包 或 没有开启
            _server.setHandler(buildHandler());
        }

        //1.1:分发事件（充许外部扩展）
        EventBus.publish(_server);
    
<methods>public void addHttpPort(int) ,public void enableSsl(boolean, javax.net.ssl.SSLContext) ,public org.noear.solon.boot.prop.impl.HttpServerProps getProps() ,public boolean isSecure() ,public void setExecutor(java.util.concurrent.Executor) <variables>protected Set<java.lang.Integer> addHttpPorts,protected java.util.concurrent.Executor executor,private boolean isSecure,protected org.noear.solon.boot.prop.impl.HttpServerProps props,protected org.noear.solon.boot.ssl.SslConfig sslConfig