类 HttpRenderUtil


  • public class HttpRenderUtil
    extends Object
    响应处理工具类
    • 构造器详细资料

      • HttpRenderUtil

        public HttpRenderUtil()
    • 方法详细资料

      • 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()
      • render

        public static io.netty.handler.codec.http.FullHttpResponse render​(String text,
                                                                          String contentType)
        response输出
        参数:
        text -
        contentType -