public class SmHttpContextHandler
extends org.smartboot.http.server.HttpServerHandler
限定符和类型 | 字段和说明 |
---|---|
protected java.util.concurrent.Executor |
executor |
构造器和说明 |
---|
SmHttpContextHandler(Handler handler) |
限定符和类型 | 方法和说明 |
---|---|
void |
handle(org.smartboot.http.server.HttpRequest request,
org.smartboot.http.server.HttpResponse response,
java.util.concurrent.CompletableFuture<java.lang.Object> future) |
protected void |
handle0(SmHttpContext ctx,
java.util.concurrent.CompletableFuture<java.lang.Object> future) |
protected void |
handleDo(SmHttpContext ctx) |
void |
onClose(org.smartboot.http.server.impl.Request request) |
void |
setExecutor(java.util.concurrent.Executor executor) |
public SmHttpContextHandler(Handler handler)
public void setExecutor(java.util.concurrent.Executor executor)
public void onClose(org.smartboot.http.server.impl.Request request)
public void handle(org.smartboot.http.server.HttpRequest request, org.smartboot.http.server.HttpResponse response, java.util.concurrent.CompletableFuture<java.lang.Object> future) throws java.io.IOException
java.io.IOException
protected void handle0(SmHttpContext ctx, java.util.concurrent.CompletableFuture<java.lang.Object> future)
protected void handleDo(SmHttpContext ctx)