类 HttpRenderUtil
- java.lang.Object
-
- org.nutz.integration.nettice.core.utils.HttpRenderUtil
-
public class HttpRenderUtil extends Object
响应处理工具类
-
-
构造器概要
构造器 构造器 说明 HttpRenderUtil()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static io.netty.handler.codec.http.FullHttpResponsegetErroResponse()static io.netty.handler.codec.http.FullHttpResponsegetNotFoundResponse()static io.netty.handler.codec.http.FullHttpResponserender(String text, String contentType)response输出static io.netty.handler.codec.http.FullHttpResponserenderHTML(String html)输出纯HTMLstatic io.netty.handler.codec.http.FullHttpResponserenderJSON(String json)输出纯Json字符串static io.netty.handler.codec.http.FullHttpResponserenderText(String text)输出纯字符串static io.netty.handler.codec.http.FullHttpResponserenderXML(String xml)输出纯XML
-
-
-
方法详细资料
-
renderJSON
public static io.netty.handler.codec.http.FullHttpResponse renderJSON(String json)
输出纯Json字符串
-
renderText
public static io.netty.handler.codec.http.FullHttpResponse renderText(String text)
输出纯字符串
-
renderXML
public static io.netty.handler.codec.http.FullHttpResponse renderXML(String xml)
输出纯XML
-
renderHTML
public static io.netty.handler.codec.http.FullHttpResponse renderHTML(String html)
输出纯HTML
-
getErroResponse
public static io.netty.handler.codec.http.FullHttpResponse getErroResponse()
-
getNotFoundResponse
public static io.netty.handler.codec.http.FullHttpResponse getNotFoundResponse()
-
-