public class BuildResponse extends Object
| 构造器和说明 |
|---|
BuildResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
static io.netty.handler.codec.http.FullHttpResponse |
buildControllerDownloadType(Response response1)
控制下载类型的文件
|
static io.netty.handler.codec.http.FullHttpResponse |
buildEnd(Request request,
io.netty.handler.codec.http.FullHttpResponse response,
Response response1)
对于head头相关的数据设置,做下收尾
|
static io.netty.handler.codec.http.FullHttpResponse |
buildError(BusinessException e)
报错的处理
|
static io.netty.handler.codec.http.FullHttpResponse |
buildError(Throwable e) |
static io.netty.handler.codec.http.FullHttpResponse |
buildHttpResponseData(Response response1)
HttpResponse对象中设置的数据
|
static io.netty.handler.codec.http.FullHttpResponse |
buildStaticShowType(HServerContext hServerContext)
静态文件
|
static io.netty.handler.codec.http.FullHttpResponse |
buildString(String res) |
static void |
writeException(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
public static io.netty.handler.codec.http.FullHttpResponse buildStaticShowType(HServerContext hServerContext)
hServerContext - public static io.netty.handler.codec.http.FullHttpResponse buildControllerDownloadType(Response response1)
response1 - public static io.netty.handler.codec.http.FullHttpResponse buildHttpResponseData(Response response1)
public static io.netty.handler.codec.http.FullHttpResponse buildEnd(Request request, io.netty.handler.codec.http.FullHttpResponse response, Response response1)
response - response1 - public static io.netty.handler.codec.http.FullHttpResponse buildString(String res)
public static io.netty.handler.codec.http.FullHttpResponse buildError(BusinessException e)
e - public static io.netty.handler.codec.http.FullHttpResponse buildError(Throwable e)
public static void writeException(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
Copyright © 2022. All rights reserved.