public class RouteMethodHandler extends Object implements RequestHandler
构造器和说明 |
---|
RouteMethodHandler() |
限定符和类型 | 方法和说明 |
---|---|
io.netty.handler.codec.http.FullHttpResponse |
createResponseByByteBuf(Response response,
io.netty.buffer.ByteBuf byteBuf) |
io.netty.handler.codec.http.FullHttpResponse |
createTextResponse(Response response,
String body) |
void |
exceptionCaught(String uri,
String method,
Exception e) |
void |
finishWrite(WebContext webContext) |
Map<String,String> |
getDefaultHeader() |
void |
handle(WebContext webContext) |
void |
handleResponse(Request request,
Response response,
io.netty.channel.ChannelHandlerContext context) |
Void |
handleStreamResponse(Response response,
InputStream body,
io.netty.channel.ChannelHandlerContext context,
boolean keepAlive) |
public void handle(WebContext webContext) throws Exception
handle
在接口中 RequestHandler
Exception
public void finishWrite(WebContext webContext)
public void handleResponse(Request request, Response response, io.netty.channel.ChannelHandlerContext context)
public Void handleStreamResponse(Response response, InputStream body, io.netty.channel.ChannelHandlerContext context, boolean keepAlive)
public io.netty.handler.codec.http.FullHttpResponse createResponseByByteBuf(Response response, io.netty.buffer.ByteBuf byteBuf)
Copyright © 2018. All rights reserved.