public final class HttpServer extends Server<java.lang.String,HttpContext,HttpRequest,HttpResponse,HttpServlet>
详情见: http://redkale.org
address, backlog, bufferCapacity, bufferPoolSize, charset, config, context, executor, logger, maxbody, name, prepare, protocol, readTimeoutSecond, RESNAME_SERVER_ROOT, responsePoolSize, serverChannel, serverStartTime, threads, watch, writeTimeoutSecond| 构造器和说明 |
|---|
HttpServer() |
HttpServer(long serverStartTime,
WatchFactory watch) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHttpServlet(HttpServlet servlet,
java.lang.String prefix,
AnyValue conf,
java.lang.String... mappings) |
protected HttpContext |
createContext() |
void |
init(AnyValue config) |
addServlet, createFormat, destroy, getLogger, getName, getProtocol, getSocketAddress, loadLib, shutdown, startpublic HttpServer()
public HttpServer(long serverStartTime,
WatchFactory watch)
public void init(AnyValue config) throws java.lang.Exception
init 在类中 Server<java.lang.String,HttpContext,HttpRequest,HttpResponse,HttpServlet>java.lang.Exceptionpublic void addHttpServlet(HttpServlet servlet, java.lang.String prefix, AnyValue conf, java.lang.String... mappings)
protected HttpContext createContext()
createContext 在类中 Server<java.lang.String,HttpContext,HttpRequest,HttpResponse,HttpServlet>