Package org.noear.solon.boot.jetty
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected org.eclipse.jetty.server.ServerFields inherited from class org.noear.solon.boot.jetty.JettyServerBase
addHttpPorts, enableSessionState, executor, props, sslConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.jetty.ee11.servlet.ServletContextHandler获取Server HandlervoidenableWebSocket(boolean enableWebSocket) protected voidvoidvoidstop()Methods inherited from class org.noear.solon.boot.jetty.JettyServerBase
addHttpPort, enableSessionState, enableSsl, getConnector, getProps, getServletHandler, isSecure, setExecutorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.noear.solon.boot.http.HttpServerConfigure
enableDebug, enableHttp2, enableSsl, isSupportedHttp2
-
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
- Specified by:
startin interfaceorg.noear.solon.boot.ServerLifecycle- Throws:
Throwable
-
stop
- Specified by:
stopin interfaceorg.noear.solon.boot.ServerLifecycle- Throws:
Throwable
-
setup
- Throws:
IOException
-
buildHandler
获取Server Handler- Throws:
IOException
-