public class SimpleServerWrapper extends Object implements HttpServerWrapper, org.simpleframework.http.core.Container, org.simpleframework.http.socket.service.Service
| Constructor and Description |
|---|
SimpleServerWrapper(Handler httpHandler,
WebSocketHandler webSocketHandler,
int threadCount,
int selectThreads,
int webSocketThreads) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(org.simpleframework.http.socket.Session session) |
protected net.codestory.http.internal.SimpleRequest |
createRequest(org.simpleframework.http.Request request) |
protected net.codestory.http.internal.SimpleResponse |
createResponse(org.simpleframework.http.Response response) |
void |
handle(org.simpleframework.http.Request request,
org.simpleframework.http.Response response) |
int |
start(int port,
SSLContext context,
boolean authReq) |
void |
stop() |
public SimpleServerWrapper(Handler httpHandler, WebSocketHandler webSocketHandler, int threadCount, int selectThreads, int webSocketThreads)
threadCount - the number of threads used for each pool.selectThreads - the number of selector threads to use.webSocketThreads - the number of threads to use in router selector.public int start(int port,
SSLContext context,
boolean authReq)
throws IOException
start in interface HttpServerWrapperIOExceptionpublic void handle(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
handle in interface org.simpleframework.http.core.Containerpublic void connect(org.simpleframework.http.socket.Session session)
connect in interface org.simpleframework.http.socket.service.Serviceprotected net.codestory.http.internal.SimpleRequest createRequest(org.simpleframework.http.Request request)
protected net.codestory.http.internal.SimpleResponse createResponse(org.simpleframework.http.Response response)
public void stop()
throws IOException
stop in interface HttpServerWrapperIOExceptionCopyright © 2015. All Rights Reserved.