public class HttpServer extends Server
| Constructor and Description |
|---|
HttpServer(HttpServerConfig config,
Object... routers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestHandlers(Object router) |
HttpSession |
createSession(Socket socket) |
protected RequestHandler |
findHandlerByHost(Request request) |
void |
handleDefault(Request request,
HttpSession session) |
void |
handleRequest(Request request,
HttpSession session) |
asyncExecute, getAcceptedSessions, getConnections, getKeepAlive, getQueueAvgBytes, getQueueAvgLength, getQueueMaxBytes, getQueueMaxLength, getRejectedSessions, getRequestsProcessed, getRequestsRejected, getSelectorAvgReady, getSelectorCount, getSelectorMaxReady, getSelectorOperations, getSelectorSessions, getWorkers, getWorkersActive, getWorkersUsed, incRequestsProcessed, incRequestsRejected, reconfigure, register, registerShutdownHook, reset, start, stoppublic HttpServer(HttpServerConfig config, Object... routers) throws IOException
IOExceptionpublic HttpSession createSession(Socket socket) throws RejectedSessionException
createSession in class ServerRejectedSessionExceptionpublic void handleRequest(Request request, HttpSession session) throws IOException
IOExceptionpublic void handleDefault(Request request, HttpSession session) throws IOException
IOExceptionpublic void addRequestHandlers(Object router)
protected RequestHandler findHandlerByHost(Request request)
Copyright © 2019. All rights reserved.