public class JettyServerAddJsp extends JettyServer
限定符和类型 | 字段和说明 |
---|---|
protected java.util.Set<java.lang.Integer> |
addHttpPorts |
protected boolean |
enableSessionState |
protected java.util.concurrent.Executor |
executor |
protected HttpServerProps |
props |
protected SslConfig |
sslConfig |
enableWebSocket, real
构造器和说明 |
---|
JettyServerAddJsp() |
限定符和类型 | 方法和说明 |
---|---|
void |
addHttpPort(int port)
添加 HttpPort(当 ssl 时,可再开个 http 端口)
|
protected org.eclipse.jetty.server.Handler |
buildHandler()
获取Server Handler
|
void |
enableSessionState(boolean enableSessionState) |
void |
enableSsl(boolean enable,
javax.net.ssl.SSLContext sslContext)
是否允许Ssl
|
protected org.eclipse.jetty.server.ServerConnector |
getConnector(org.eclipse.jetty.server.Server server,
java.lang.String host,
int port,
boolean autoSsl)
创建连接器(支持https)
|
HttpServerProps |
getProps() |
protected org.eclipse.jetty.servlet.ServletContextHandler |
getServletHandler() |
boolean |
isSecure() |
void |
setExecutor(java.util.concurrent.Executor executor)
设置执行器(线程池)
|
enableWebSocket, setup, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableDebug, enableHttp2, enableSsl, isSupportedHttp2
protected java.util.concurrent.Executor executor
protected HttpServerProps props
protected SslConfig sslConfig
protected boolean enableSessionState
protected java.util.Set<java.lang.Integer> addHttpPorts
protected org.eclipse.jetty.server.Handler buildHandler() throws java.io.IOException
buildHandler
在类中 JettyServer
java.io.IOException
public boolean isSecure()
public void enableSessionState(boolean enableSessionState)
public void enableSsl(boolean enable, javax.net.ssl.SSLContext sslContext)
enableSsl
在接口中 HttpServerConfigure
public void addHttpPort(int port)
addHttpPort
在接口中 HttpServerConfigure
public HttpServerProps getProps()
public void setExecutor(java.util.concurrent.Executor executor)
HttpServerConfigure
setExecutor
在接口中 HttpServerConfigure
protected org.eclipse.jetty.server.ServerConnector getConnector(org.eclipse.jetty.server.Server server, java.lang.String host, int port, boolean autoSsl) throws java.lang.RuntimeException
java.lang.RuntimeException
protected org.eclipse.jetty.servlet.ServletContextHandler getServletHandler() throws java.io.IOException
java.io.IOException