public class RouteMethodHandler extends Object implements RequestHandler<io.netty.channel.ChannelHandlerContext>
构造器和说明 |
---|
RouteMethodHandler() |
限定符和类型 | 方法和说明 |
---|---|
io.netty.handler.codec.http.FullHttpResponse |
createFullResponse(int status,
boolean keepAlive,
Map<String,String> headers,
Set<io.netty.handler.codec.http.cookie.Cookie> cookies,
String body) |
Map<String,String> |
getDefaultHeader(boolean keepAlive) |
void |
handle(io.netty.channel.ChannelHandlerContext ctx,
Request request,
Response response) |
void |
handleFullResponse(io.netty.handler.codec.http.FullHttpResponse response,
io.netty.channel.ChannelHandlerContext context,
boolean keepAlive) |
void |
handleResponse(Response response,
io.netty.channel.ChannelHandlerContext context,
boolean keepAlive) |
void |
handleStreamResponse(int status,
Map<String,String> headers,
InputStream body,
io.netty.channel.ChannelHandlerContext context,
boolean keepAlive) |
public void handleResponse(Response response, io.netty.channel.ChannelHandlerContext context, boolean keepAlive)
public void handleFullResponse(io.netty.handler.codec.http.FullHttpResponse response, io.netty.channel.ChannelHandlerContext context, boolean keepAlive)
public void handleStreamResponse(int status, Map<String,String> headers, InputStream body, io.netty.channel.ChannelHandlerContext context, boolean keepAlive)
public io.netty.handler.codec.http.FullHttpResponse createFullResponse(int status, boolean keepAlive, Map<String,String> headers, Set<io.netty.handler.codec.http.cookie.Cookie> cookies, String body)
Copyright © 2018. All rights reserved.