public class HttpServerStarter extends Object
| 构造器和说明 |
|---|
HttpServerStarter(org.tio.http.common.HttpConfig httpConfig,
org.tio.http.common.handler.HttpRequestHandler requestHandler) |
HttpServerStarter(org.tio.http.common.HttpConfig httpConfig,
org.tio.http.common.handler.HttpRequestHandler requestHandler,
org.tio.utils.thread.pool.SynThreadPoolExecutor tioExecutor,
ThreadPoolExecutor groupExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.tio.http.common.HttpConfig |
getHttpConfig() |
org.tio.http.common.handler.HttpRequestHandler |
getHttpRequestHandler() |
HttpTioServerHandler |
getHttpTioServerHandler() |
HttpTioServerListener |
getHttpTioServerListener() |
org.tio.server.TioServer |
getTioServer() |
org.tio.server.TioServerConfig |
getTioServerConfig() |
void |
preAccess()
预访问第一版功能先上,后面再优化
|
void |
setHttpRequestHandler(org.tio.http.common.handler.HttpRequestHandler requestHandler) |
void |
start() |
void |
start(boolean preAccess) |
void |
stop() |
public HttpServerStarter(org.tio.http.common.HttpConfig httpConfig,
org.tio.http.common.handler.HttpRequestHandler requestHandler)
httpConfig - requestHandler - public HttpServerStarter(org.tio.http.common.HttpConfig httpConfig,
org.tio.http.common.handler.HttpRequestHandler requestHandler,
org.tio.utils.thread.pool.SynThreadPoolExecutor tioExecutor,
ThreadPoolExecutor groupExecutor)
httpConfig - requestHandler - tioExecutor - groupExecutor - public org.tio.http.common.HttpConfig getHttpConfig()
public org.tio.http.common.handler.HttpRequestHandler getHttpRequestHandler()
public HttpTioServerHandler getHttpTioServerHandler()
public HttpTioServerListener getHttpTioServerListener()
public org.tio.server.TioServerConfig getTioServerConfig()
public void setHttpRequestHandler(org.tio.http.common.handler.HttpRequestHandler requestHandler)
public void start()
throws IOException
IOExceptionpublic void start(boolean preAccess)
throws IOException
preAccess - IOExceptionpublic void preAccess()
public void stop()
throws IOException
IOExceptionpublic org.tio.server.TioServer getTioServer()
Copyright © 2022. All rights reserved.